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:159


id

id: string

The user ID.

Since

1.0.0

Defined in

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


refresh

refresh: string

The refresh token.

Since

1.0.0

Defined in

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


token

token: string

The access token.

Since

1.0.0

Defined in

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