Appearance
Function: createAuthInterceptor()
createAuthInterceptor(
tokenSource,type?): (config) =>InternalAxiosRequestConfig
Defined in: interceptors.ts:84
Creates authentication interceptor
Parameters
tokenSource
Auth token or function that returns token
type?
string = 'Bearer'
Token type ('Bearer', 'Token', etc.)
Returns
Request interceptor
(config) => InternalAxiosRequestConfig