MCPcopy
hub / github.com/diegohaz/rest / sign

Function sign

generators/app/templates/services/jwt/index.js:8–9  ·  view source on GitHub ↗
(id, options, method = jwtSign)

Source from the content-addressed store, hash-verified

6const jwtVerify = Promise.promisify(jwt.verify)
7
8export const sign = (id, options, method = jwtSign) =>
9 method({ id }, jwtSecret, options)
10
11export const signSync = (id, options) => sign(id, options, jwt.sign)
12

Callers 3

loginFunction · 0.90
signSyncFunction · 0.85
controller.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected