add me point to load user data of current user
This commit is contained in:
parent
fac606cf97
commit
e5b5d7e67d
12 changed files with 215 additions and 67 deletions
9
src/dtos/AuthPayload.ts
Normal file
9
src/dtos/AuthPayload.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { JwtPayload } from "jsonwebtoken";
|
||||
|
||||
/**
|
||||
* Shape of the payload stored inside JWT tokens.
|
||||
* We extend JwtPayload so "iat" / "exp" etc. remain available.
|
||||
*/
|
||||
export interface AuthPayload extends JwtPayload {
|
||||
id: string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue