Skip to main content

IOAuth2Token

@auvious/common / Exports / IOAuth2Token

Interface: IOAuth2Token

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