mirror of
https://github.com/tribufu/sdk-js
synced 2025-06-15 18:24:19 +00:00
21 lines
447 B
TypeScript
21 lines
447 B
TypeScript
// Copyright (c) Tribufu. All Rights Reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
export type TokenType = "user" | "bot" | "client" | "server";
|
|
|
|
export interface TokenPayload {
|
|
jti: string;
|
|
type: TokenType;
|
|
iss: string;
|
|
aud: string;
|
|
client_id: string;
|
|
scope: string;
|
|
user_id?: string;
|
|
bot_id?: string;
|
|
private_flags?: string;
|
|
public_flags?: string;
|
|
server_id?: string;
|
|
iat: number;
|
|
exp: number;
|
|
}
|