feat: add discord login

This commit is contained in:
uku 2024-11-20 09:30:57 +01:00
parent 298592681b
commit 8d7b3d6dc2
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
15 changed files with 289 additions and 1 deletions

15
src/lib/auth/index.ts Normal file
View 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;
}