Constructors
constructor
- new AccessToken(accessToken: string, expiresIn: number, refreshToken: string, refreshExpiresIn: number, fordConsumerId: string): AccessToken
Parameters
accessToken: string
expiresIn: number
refreshToken: string
refreshExpiresIn: number
fordConsumerId: string
Properties
Private expiresAt
expiresAt: Date
Private fordConsumerId
fordConsumerId: string
Private refreshExpiresAt
refreshExpiresAt: Date
Private refreshToken
refreshToken: string
Private value
value: string
Methods
getFordConsumerId
- getFordConsumerId(): string
getRefreshExpiresAt
- getRefreshExpiresAt(): Date
getRefreshToken
- getRefreshToken(): string
refreshIsExpired
- refreshIsExpired(): boolean
setExpiresAtFromTimeStamp
- setExpiresAtFromTimeStamp(expiresIn: number): Date
Get expiration date