forked from nuxt-modules/hanko
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
felix
committed
Jun 25, 2024
1 parent
c5dbd5c
commit 0e28fe3
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
import type { JWTPayload } from 'jose' | ||
|
||
export type HankoPayload = JWTPayload & { | ||
aud: string[] | ||
email: { | ||
address: string | ||
is_primary: boolean | ||
is_verified: boolean | ||
} | ||
exp: number | ||
iat: number | ||
sub: string | ||
} | ||
|
||
declare module 'h3' { | ||
interface H3EventContext { | ||
hanko?: JWTPayload | ||
hanko?: HankoPayload | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters