You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import jwt from "jsonwebtoken";
// let o = { name: `Hello World!`}
let o = { name: `Привет Мир!`}
let token = jwt.sign( o, `secret`, {
expiresIn: `1h`,
} );
let [, payload] = token.split( `.` );
let text = atob( payload ); // Error
How to fix this example?
In terminal
npm start
stackblitzThe text was updated successfully, but these errors were encountered: