↳ AuthError
+ new AuthError(message
: string, cause?
: Error): AuthError
Defined in packages/auth-interceptor/src/authError.ts:2
Parameters:
Returns: AuthError
Optional
cause• cause? : Error
Defined in packages/auth-interceptor/src/authError.ts:2
• message: string
Inherited from AuthError.message
Defined in node_modules/typescript/lib/lib.es5.d.ts:974
• name: string
Defined in node_modules/typescript/lib/lib.es5.d.ts:973
Optional
stack• stack? : undefined | string
Inherited from AuthError.stack
Defined in node_modules/typescript/lib/lib.es5.d.ts:975
Static
Error▪ Error: ErrorConstructor
Defined in node_modules/typescript/lib/lib.es5.d.ts:984
▪ T
InMemoryAuthStorage
AuthStorage‹T›
▸ getData(): T | undefined
Implementation of AuthStorage
Defined in packages/auth-interceptor/src/storage/inMemory.authStorage.ts:6
Returns: T | undefined
▸ setData(data
: T): void
Implementation of AuthStorage
Defined in packages/auth-interceptor/src/storage/inMemory.authStorage.ts:10
Parameters:
Returns: void
Name
Type
message
string
cause?
Name
Type
data
T
AuthInterceptor
HttpInterceptorInterface
+ new AuthInterceptor(options
: AuthInterceptorOptions): AuthInterceptor
Defined in packages/auth-interceptor/src/authInterceptor.ts:19
Parameters:
Returns: AuthInterceptor
• get pendingRequestCount(): number
Defined in packages/auth-interceptor/src/authInterceptor.ts:24
Returns: number
▸ onIntercept<Body>(request
: HttpFetch‹Body›, options
: NormalizedHttpOptions): HttpFetch‹Body›
Defined in packages/auth-interceptor/src/authInterceptor.ts:28
Type parameters:
▪ Body
Parameters:
Returns: HttpFetch‹Body›
Simple queue that executes Promises one by one.
SimpleQueue
• get length(): number
Defined in packages/auth-interceptor/src/simpleQueue.ts:14
Returns: number
▸ clean(reason
: any): void
Defined in packages/auth-interceptor/src/simpleQueue.ts:36
Parameters:
Returns: void
▸ put<T>(item
: function): Promise‹T›
Defined in packages/auth-interceptor/src/simpleQueue.ts:21
Queues specified promise and returns when it's done
Type parameters:
▪ T
Parameters:
▪ item: function
▸ (): Promise‹T›
Returns: Promise‹T›
Name
Type
options
Name
Type
request
HttpFetch‹Body›
options
NormalizedHttpOptions
Name
Type
reason
any