Properties
authorityHost
authorityHost: string
Methods
createWebResource
- createWebResource(requestOptions: RequestPrepareOptions): WebResource
-
Parameters
-
requestOptions: RequestPrepareOptions
Returns WebResource
refreshAccessToken
- refreshAccessToken(tenantId: string, clientId: string, scopes: string, refreshToken: string | undefined, clientSecret: string | undefined, expiresOnParser?: undefined | ((responseBody: any) => number), options?: GetTokenOptions): Promise<TokenResponse | null>
-
Parameters
-
tenantId: string
-
clientId: string
-
scopes: string
-
refreshToken: string | undefined
-
clientSecret: string | undefined
-
Optional expiresOnParser: undefined | ((responseBody: any) => number)
-
Optional options: GetTokenOptions
sendGetRequestAsync
- sendGetRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<NetworkResponse<T>>
-
Type parameters
Parameters
-
url: string
-
Optional options: NetworkRequestOptions
Returns Promise<NetworkResponse<T>>
sendPostRequestAsync
- sendPostRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<NetworkResponse<T>>
-
Type parameters
Parameters
-
url: string
-
Optional options: NetworkRequestOptions
Returns Promise<NetworkResponse<T>>
sendTokenRequest
- sendTokenRequest(webResource: WebResource, expiresOnParser?: undefined | ((responseBody: any) => number)): Promise<TokenResponse | null>
-
Parameters
-
webResource: WebResource
-
Optional expiresOnParser: undefined | ((responseBody: any) => number)