Foxnouns.NET/Foxnouns.Frontend/app/lib/api/auth.ts
sam ff22530f0a
feat(frontend): add discord callback page
this only handles existing accounts for now, still need to write an action function
2024-09-13 14:56:38 +02:00

22 lines
364 B
TypeScript

import { User } from "~/lib/api/user";
export type AuthResponse = {
user: User;
token: string;
expires_at: string;
};
export type CallbackResponse = {
has_account: boolean;
ticket?: string;
remote_username?: string;
user?: User;
token?: string;
expires_at?: string;
};
export type AuthUrls = {
discord?: string;
google?: string;
tumblr?: string;
};