feat: add discord login
This commit is contained in:
parent
298592681b
commit
8d7b3d6dc2
15 changed files with 289 additions and 1 deletions
15
src/lib/auth/index.ts
Normal file
15
src/lib/auth/index.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
export type SessionValidationResult =
|
||||
| { session: Session; user: User }
|
||||
| { session: null; user: null };
|
||||
|
||||
export interface Session {
|
||||
id: string;
|
||||
userId: string;
|
||||
expiresAt: Date;
|
||||
}
|
||||
|
||||
export interface User {
|
||||
id: string;
|
||||
name: string;
|
||||
avatarHash: string;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue