mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 04:09:12 +00:00
21 lines
No EOL
386 B
TypeScript
21 lines
No EOL
386 B
TypeScript
|
|
export declare type BaseSession = {
|
|
userId: string,
|
|
expiresAt: number
|
|
}
|
|
|
|
export declare type OAuthSession = BaseSession & {
|
|
authType: 'oauth',
|
|
accessToken: string,
|
|
refreshToken: string
|
|
}
|
|
|
|
export declare type DMSession = BaseSession & {
|
|
authType: 'dm'
|
|
}
|
|
|
|
export declare type AuthSession = OAuthSession | DMSession
|
|
|
|
export declare type Session = AuthSession & Partial<{
|
|
|
|
}> |