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

23 lines
386 B
TypeScript

import type { User } from "./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 = {
email_enabled: boolean;
discord?: string;
google?: string;
tumblr?: string;
};