first commit
This commit is contained in:
17
server/types/auth.ts
Normal file
17
server/types/auth.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
export interface AuthContext {
|
||||
id: string
|
||||
token: string
|
||||
}
|
||||
|
||||
export interface AccessTokenClaims {
|
||||
sub: string
|
||||
iss: string
|
||||
aud: string
|
||||
iat: number
|
||||
exp: number
|
||||
}
|
||||
|
||||
export interface AuthRouteRequirement {
|
||||
method: string
|
||||
path: string
|
||||
}
|
||||
Reference in New Issue
Block a user