implement auth

This commit is contained in:
fiatcode 2025-10-18 23:33:22 +07:00
parent 96761cb911
commit 1434756b10
12 changed files with 130 additions and 13 deletions

9
src/types.d.ts vendored
View file

@ -1,3 +1,12 @@
export interface AuthPayload {
// An UUID string, unique per request.
token: string;
// Unix time in seconds. It is the time when the token was issued.
// Will expire after a time window.
issuedAt: number;
}
export interface Quote {
id: number;
text: string;