MCPcopy Create free account
hub / github.com/alpha2phi/python-apps / getTokenPayload

Function getTokenPayload

hackernews/backend-nodejs/src/utils.js:4–6  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

2const APP_SECRET = 'GraphQL-is-aw3some';
3
4function getTokenPayload(token) {
5 return jwt.verify(token, APP_SECRET);
6}
7
8function getUserId(req, authToken) {
9 if (req) {

Callers 1

getUserIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected