mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 11:59:11 +00:00
22 lines
461 B
TypeScript
22 lines
461 B
TypeScript
import { GuildSlug } from './Guild';
|
|
import { DiscordUser } from './User';
|
|
|
|
export type AuthTokenResponse = {
|
|
access_token: string;
|
|
token_type: 'Bearer';
|
|
expires_in: number;
|
|
refresh_token: string;
|
|
scope: string;
|
|
};
|
|
|
|
export type SessionData = {
|
|
/** sessionID is a KSUID */
|
|
sessionID: string;
|
|
tokens: AuthTokenResponse;
|
|
user: DiscordUser;
|
|
guilds: GuildSlug[];
|
|
};
|
|
|
|
export type StateSession = {
|
|
callbackHost?: string;
|
|
};
|