Open ImJustLucas opened 1 year ago
Might be related to what i want https://github.com/elysiajs/elysia-jwt/issues/17
We both got issue on .verify
, my token here is not expired i'm sure about that
Verification can fail if there’s a schema
defined. I’ve published my fork of this library which fixes that issue.
Hello, i've forgot to write it here, but i've fixed this issue on my repo where i used it, with still the schema defined
here is what i changed, my problem was due to the exp property which doesn't take the actual date by default
after, thanks to new version of elysia, i could remove the @elisya/cookie package, and use the native usage if cookie
Hello guys, i got a problem with the .verify method of the @elysia/jwt package. I'm trying to verify my jwt token but it doesn't work and return false. jwt.io tell me there is nothing wrong with my token
here is my code:
this code is in a middleware, and the cookie is set in the request. the code of the jwtAccess.verify method is:
Even this, return false
every time i want to check the jwt, it returns me false but when i check it with the jwt.io debugger, it works. is there a problem with the verify method or am i doing something wrong?
full repo: https://github.com/ImJustLucas/bun-elysia-boilerplate/tree/master