copy over a few files for now

This commit is contained in:
Hailey
2024-04-08 16:30:46 -07:00
parent d61fc5f32e
commit 71721b5943
16 changed files with 908 additions and 2 deletions
+20
View File
@@ -0,0 +1,20 @@
import { JwtHeader, JwtPayload } from './jwt.js'
import { RequiredKey } from './util.js'
export type VerifyOptions<C extends string = string> = {
audience?: string | readonly string[]
clockTolerance?: string | number
issuer?: string | readonly string[]
maxTokenAge?: string | number
subject?: string
typ?: string
currentDate?: Date
requiredClaims?: readonly C[]
}
export type VerifyPayload = Record<string, unknown>
export type VerifyResult<P extends VerifyPayload, C extends string> = {
payload: RequiredKey<P & JwtPayload, C>
protectedHeader: JwtHeader
}