(userToken: string)
| 10 | * @returns An encoded object with the userToken property. |
| 11 | */ |
| 12 | export function encodeUserToken(userToken: string): string { |
| 13 | return jwt.sign({ userToken }, JWT_SECRET); |
| 14 | } |
| 15 | |
| 16 | export type Token = { |
| 17 | userId: string; |
no outgoing calls
no test coverage detected