feat: initial working discord authentication
This commit is contained in:
parent
6186eda092
commit
a7950671e1
12 changed files with 262 additions and 25 deletions
18
Foxnouns.Frontend/src/lib/api/auth.ts
Normal file
18
Foxnouns.Frontend/src/lib/api/auth.ts
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue