MCPcopy Create free account
hub / github.com/TomDoesTech/REST-API-Tutorial / sign

Function sign

src/utils/jwt.utils.ts:6–8  ·  view source on GitHub ↗
(object: Object, options?: jwt.SignOptions | undefined)

Source from the content-addressed store, hash-verified

4const privateKey = config.get("privateKey") as string;
5
6export function sign(object: Object, options?: jwt.SignOptions | undefined) {
7 return jwt.sign(object, privateKey, options);
8}
9
10export function decode(token: string) {
11 try {

Callers 2

createUserSessionHandlerFunction · 0.90
createAccessTokenFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected