fetchToken
Function: fetchToken()
fetchToken(
url,init,read,timeout):Promise<SourcedToken>
Defined in: packages/oidc/src/sources/source.ts:57
Fetch a token over HTTP
Parameters
url
string
the url
init
RequestInit
the request options
read
(res) => Promise<string>
extract the token from the response
timeout
number
timeout in milliseconds
Returns
Promise<SourcedToken>
the token