MCPcopy Create free account
hub / github.com/Rfym21/Qwen2API / JwtDecode

Function JwtDecode

src/utils/tools.js:29–37  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

27}
28
29const JwtDecode = (token) => {
30 try {
31 const decoded = jwtDecode(token, { complete: true })
32 return decoded
33 } catch (error) {
34 logger.error('解析JWT失败', 'JWT', '', error)
35 return null
36 }
37}
38
39/**
40 * 生成UUID v4

Callers 3

validateTokenMethod · 0.85
processBatchAccountItemFunction · 0.85
accounts.jsFile · 0.85

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected