Skip to main content
Version: v2

TokenResponse Interface

Represents token response

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/odsp-driver-definitions/legacy.

For more information about our API support guarantees, see here.

Signature​

export interface TokenResponse

Properties​

PropertyAlertsModifiersTypeDescription
authorizationHeaderBetaoptional, readonlystringAuthorization header value will be used verbatim when making network call that requires the token. If not provided, the token value will be assumed to be a Bearer token and will be used to generate the Authorization header value in the following format: Bearer ${token}.
fromCacheBetaoptionalbooleanWhether or not the token was obtained from local cache.
tokenBetastringToken value

Property Details​

authorizationHeader​

Authorization header value will be used verbatim when making network call that requires the token. If not provided, the token value will be assumed to be a Bearer token and will be used to generate the Authorization header value in the following format: Bearer ${token}.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

readonly authorizationHeader?: string;

Type: string

fromCache​

Whether or not the token was obtained from local cache.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

fromCache?: boolean;

Type: boolean

Remarks​

undefined indicates that it could not be determined whether or not the token was obtained this way.

token​

Token value

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

token: string;

Type: string