fetchToken

Function

Parameters

Parameter Type Default Notes
url Required string
requestOptions Required ITokenRequestOptions

Available requestOptions

Property Type Notes
fetch Optional function(input: RequestInfo, init: RequestInit) : Promise<Response>
httpMethod Optional HTTPMethods
params Optional IGenerateTokenParams | IFetchTokenParams

Returns

Property Type Notes
expires Date
ssl boolean
token string
username string
refreshToken Optional string

Function defined in packages/arcgis-rest-auth/src/fetch-token.ts:26