Closed K4leri closed 3 months ago
export const jwtAccessSetup = new Elysia() .use( jwt({ name: "jwtAccess", schema: t.Object({ id: t.String(), role: t.String(), // ban: t.Boolean() }), secret: "I_have_many_random_words", exp: '1d', }) );
const accessToken = await jwtAccess.sign({ id: user.id, role: user.role || "user"}) const payload = await jwtAccess.verify(accessToken); console.log(payload) => false
@elysiajs/jwt": "^1.0.2 Hi. My libriry was broken for some reason. I create jwt and immediately trying verify it and get false ..
@elysiajs/jwt": "^1.0.2
is their any suggestions what i can do ? cause all authorization proccess is down right now
same issue
@elysiajs/jwt": "^1.0.2
Hi. My libriry was broken for some reason. I create jwt and immediately trying verify it and get false ..is their any suggestions what i can do ? cause all authorization proccess is down right now