Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
2
const
APP_SECRET =
'GraphQL-is-aw3some'
;
3
4
function
getTokenPayload(token) {
5
return
jwt.verify(token, APP_SECRET);
6
}
7
8
function
getUserId(req, authToken) {
9
if
(req) {
Callers
1
getUserId
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected