Code AnalysisBeginner 60s
Trace: JWT Decode
What is in the payload?
Starter code
const jwt='eyJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoiYWRtaW4ifQ.sig';
const parts=jwt.split('.');
const payload=atob(parts[1]);
console.log(JSON.parse(payload).role)Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.