Foxnouns.NET/Foxnouns.Frontend/src/lib/api/models/auth.ts

24 lines
386 B
TypeScript
Raw Normal View History

import type { User } from "./user";
2024-09-10 21:24:40 +02:00
export type AuthResponse = {
user: User;
token: string;
expires_at: string;
};
2024-09-11 19:13:54 +02:00
export type CallbackResponse = {
has_account: boolean;
ticket?: string;
remote_username?: string;
user?: User;
token?: string;
expires_at?: string;
};
2024-09-11 19:13:54 +02:00
export type AuthUrls = {
email_enabled: boolean;
2024-09-11 19:13:54 +02:00
discord?: string;
google?: string;
tumblr?: string;
};