@auth0/auth0-angular
Preparing search index...
Fetcher
Class Fetcher<TOutput>
Type Parameters
TOutput
extends
CustomFetchMinimalOutput
Index
Constructors
constructor
Properties
config
hooks
Methods
build
Base
Request
build
Url
extract
Url
fetch
With
Auth
get
Access
Token
get
Header
handle
Response
has
Use
Dpop
Nonce
Error
internal
Fetch
With
Auth
is
Absolute
Url
prepare
Request
set
Authorization
Header
set
Dpop
Proof
Header
Constructors
constructor
new
Fetcher
<
TOutput
extends
CustomFetchMinimalOutput
>
(
config
:
FetcherConfig
<
TOutput
>
,
hooks
:
FetcherHooks
,
)
:
Fetcher
<
TOutput
>
Type Parameters
TOutput
extends
CustomFetchMinimalOutput
Parameters
config
:
FetcherConfig
<
TOutput
>
hooks
:
FetcherHooks
Returns
Fetcher
<
TOutput
>
Properties
Protected
Readonly
config
config
:
Omit
<
FetcherConfig
<
TOutput
>
,
"fetch"
>
&
Required
<
Pick
<
FetcherConfig
<
TOutput
>
,
"fetch"
>
,
>
Protected
Readonly
hooks
hooks
:
FetcherHooks
Methods
Protected
build
Base
Request
buildBaseRequest
(
info
:
RequestInfo
|
URL
,
init
:
RequestInit
|
undefined
,
)
:
Request
Parameters
info
:
RequestInfo
|
URL
init
:
RequestInit
|
undefined
Returns
Request
Protected
build
Url
buildUrl
(
baseUrl
:
string
|
undefined
,
url
:
string
|
undefined
)
:
string
Parameters
baseUrl
:
string
|
undefined
url
:
string
|
undefined
Returns
string
Protected
extract
Url
extractUrl
(
info
:
RequestInfo
|
URL
)
:
string
Parameters
info
:
RequestInfo
|
URL
Returns
string
fetch
With
Auth
fetchWithAuth
(
info
:
RequestInfo
|
URL
,
init
?:
RequestInit
,
authParams
?:
AuthParams
,
)
:
Promise
<
TOutput
>
Parameters
info
:
RequestInfo
|
URL
Optional
init
:
RequestInit
Optional
authParams
:
AuthParams
Returns
Promise
<
TOutput
>
Protected
get
Access
Token
getAccessToken
(
authParams
?:
AuthParams
,
)
:
Promise
<
string
|
GetTokenSilentlyVerboseResponse
|
undefined
>
Parameters
Optional
authParams
:
AuthParams
Returns
Promise
<
string
|
GetTokenSilentlyVerboseResponse
|
undefined
>
Protected
get
Header
getHeader
(
headers
:
ResponseHeaders
,
name
:
string
)
:
string
Parameters
headers
:
ResponseHeaders
name
:
string
Returns
string
Protected
handle
Response
handleResponse
(
response
:
TOutput
,
callbacks
:
FetchWithAuthCallbacks
<
TOutput
>
,
)
:
Promise
<
TOutput
>
Parameters
response
:
TOutput
callbacks
:
FetchWithAuthCallbacks
<
TOutput
>
Returns
Promise
<
TOutput
>
Protected
has
Use
Dpop
Nonce
Error
hasUseDpopNonceError
(
response
:
TOutput
)
:
boolean
Parameters
response
:
TOutput
Returns
boolean
Protected
internal
Fetch
With
Auth
internalFetchWithAuth
(
info
:
RequestInfo
|
URL
,
init
:
RequestInit
|
undefined
,
callbacks
:
FetchWithAuthCallbacks
<
TOutput
>
,
authParams
?:
AuthParams
,
)
:
Promise
<
TOutput
>
Parameters
info
:
RequestInfo
|
URL
init
:
RequestInit
|
undefined
callbacks
:
FetchWithAuthCallbacks
<
TOutput
>
Optional
authParams
:
AuthParams
Returns
Promise
<
TOutput
>
Protected
is
Absolute
Url
isAbsoluteUrl
(
url
:
string
)
:
boolean
Parameters
url
:
string
Returns
boolean
Protected
prepare
Request
prepareRequest
(
request
:
Request
,
authParams
?:
AuthParams
)
:
Promise
<
void
>
Parameters
request
:
Request
Optional
authParams
:
AuthParams
Returns
Promise
<
void
>
Protected
set
Authorization
Header
setAuthorizationHeader
(
request
:
Request
,
accessToken
:
string
,
tokenType
?:
string
,
)
:
void
Parameters
request
:
Request
accessToken
:
string
Optional
tokenType
:
string
Returns
void
Protected
set
Dpop
Proof
Header
setDpopProofHeader
(
request
:
Request
,
accessToken
:
string
)
:
Promise
<
void
>
Parameters
request
:
Request
accessToken
:
string
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
config
hooks
Methods
build
Base
Request
build
Url
extract
Url
fetch
With
Auth
get
Access
Token
get
Header
handle
Response
has
Use
Dpop
Nonce
Error
internal
Fetch
With
Auth
is
Absolute
Url
prepare
Request
set
Authorization
Header
set
Dpop
Proof
Header
@auth0/auth0-angular
Loading...