Class OAuth2TokenResponse
Constructors
constructor
- new OAuth2TokenResponse(accessToken, tokenType): OAuth2TokenResponse
Parameters
- accessToken: string
- tokenType: string
Properties
Protected
accessToken
accessToken: string
Protected
Optional
expiresIn
expiresIn?: number
Protected
Optional
refreshToken
refreshToken?: string
Protected
Optional
scope
scope?: string
Protected
tokenType
tokenType: string
Methods
getAccessToken
- getAccessToken(): string
Returns string
getExpiresIn
- getExpiresIn(): undefined | number
Returns undefined | number
number of seconds
getRefreshToken
- getRefreshToken(): undefined | string
Returns undefined | string
getScope
- getScope(): undefined | string
Returns undefined | string
getTokenType
- getTokenType(): string
Returns string
toJSON
- toJSON(): {
access_token: string;
expires_in?: number;
refresh_token?: string;
scope?: string;
token_type: string;
} Returns {
access_token: string;
expires_in?: number;
refresh_token?: string;
scope?: string;
token_type: string;
}
access_token: string
Optional
expires_in?: number
Optional
refresh_token?: string
Optional
scope?: string
token_type: string
toObject
- toObject(): {
access_token: string;
expires_in?: number;
refresh_token?: string;
scope?: string;
token_type: string;
} Returns {
access_token: string;
expires_in?: number;
refresh_token?: string;
scope?: string;
token_type: string;
}
access_token: string
Optional
expires_in?: number
Optional
refresh_token?: string
Optional
scope?: string
token_type: string
in seconds