Skip to main content

Interface: AuthData

@sapphire/plugin-api.AuthData

Defines the authentication data, this is to be encrypted and decrypted by the server.

since 1.0.0

Properties

expires

โ€ข expires: number

The timestamp at which the token expires.

since 1.0.0

Defined in

projects/plugins/packages/api/src/lib/structures/http/Auth.ts:155


id

โ€ข id: string

The user ID.

since 1.0.0

Defined in

projects/plugins/packages/api/src/lib/structures/http/Auth.ts:149


refresh

โ€ข refresh: string

The refresh token.

since 1.0.0

Defined in

projects/plugins/packages/api/src/lib/structures/http/Auth.ts:161


token

โ€ข token: string

The access token.

since 1.0.0

Defined in

projects/plugins/packages/api/src/lib/structures/http/Auth.ts:167