MCPcopy Index your code
hub / github.com/Microck/opencode-studio / decodeJWT

Function decodeJWT

server/index.js:3384–3393  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

3382}
3383
3384function decodeJWT(token) {
3385 try {
3386 const parts = token.split('.');
3387 if (parts.length !== 3) return null;
3388 const payload = Buffer.from(parts[1], 'base64').toString('utf8');
3389 return JSON.parse(payload);
3390 } catch {
3391 return null;
3392 }
3393}
3394
3395function importCurrentAuthToPool(provider) {
3396 if (provider === 'google') {

Callers 2

index.jsFile · 0.85
importCurrentAuthToPoolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected