@flexbase/http-client-middleware
Version:
Http client middleware
20 lines (19 loc) • 673 B
TypeScript
/**
* Represents an authentication token
*/
export interface AuthenticationToken {
/** The type of the token */
tokenType: string;
/** The token value */
token: string;
/** The expiration of a token in seconds since epoch */
expiration: number;
/** An optional refresh token value */
refreshToken?: string;
/** The space delimited scopes associated with the token */
scope: string;
/** The last 4 digits of the phone number receiving the 2fa code */
challengePhoneNumberLastFour?: string;
}
/** Creates an empty {@link AuthenticationToken} */
export declare const createEmptyAuthenticationToken: () => AuthenticationToken;