feat: initial working discord authentication

This commit is contained in:
sam 2024-06-13 02:23:55 +02:00
parent 6186eda092
commit a7950671e1
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
12 changed files with 262 additions and 25 deletions

View file

@ -0,0 +1,18 @@
import type { User } from "./user";
export type CallbackRequest = {
code: string;
state: string;
};
export type CallbackResponse = {
has_account: boolean;
ticket: string;
remote_username: string | null;
};
export type AuthResponse = {
user: User;
token: string;
expires_at: string;
};