implement auth
This commit is contained in:
parent
96761cb911
commit
1434756b10
12 changed files with 130 additions and 13 deletions
9
src/types.d.ts
vendored
9
src/types.d.ts
vendored
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue