Skip to main content

@auvious/common / IOAuth2Token

Interface: IOAuth2Token

oauth2 token class for auvious' services.

Implemented by​

Table of contents​

Properties​

Methods​

Properties​

accessToken​

• accessToken: string


bearer​

• bearer: string


createdAt​

• createdAt: Date


expiresAt​

• expiresAt: Date


expiresIn​

• expiresIn: number


isExpired​

• isExpired: boolean


isGuest​

• isGuest: boolean


refreshToken​

• refreshToken: string


scope​

• scope: string


type​

• type: string


userId​

• userId: string

Methods​

importJSON​

▸ importJSON(json): void

Parameters​

NameType
jsonany

Returns​

void


refresh​

▸ refresh(): Promise<IOAuth2Token>

Returns​

Promise<IOAuth2Token>


toJSON​

▸ toJSON(): any

Returns​

any


toJSONStringified​

▸ toJSONStringified(): string

Returns​

string