This is a code to generate a token' my token is: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2M2FlMDdjMDQ3ZmQ5NWEzMTgwNDJhNTMiLCJuYW1lIjoia ...
This is a code to generate a token' my token is: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2M2FlMDdjMDQ3ZmQ5NWEzMTgwNDJhNTMiLCJuYW1lIjoia ...
i AM facing this issue when am register a user with avatar and use cloudinary for avatar, ...
I made an auth middleware that checks whether access token sent via header is valid. if it expires it should return a 401 error if something is ...
SO ive been trying to authenticate user login on my web application but the authentication fails every time with an empty error... my code: my server ...
I'm trying to use process.env.JWT_SECRET for the secret but it just trow error: This way I don't have error but the then I get 'UnauthorizedError: ...
In our backend routes/index.js, we have I tried to test the /ask api from the frontend to backend in localhost. Here is a part of the code in the f ...
I use express JWT with nest js and use it in gateway graphql. I want to return error when my token has error including expiration error or invalid err ...
This is the first time I am using JSON Web Tokens. But the error is coming, and the error is expressjwt is not a function. ...
I have a Vue project and all of my routes are structured the same, however, one of them always gives me an unauthorized error. Here are the routes: ...
I am currently attempting to implement auth into my API and am puzzled by the concept of refresh tokens. I understand they are for generating new acce ...
I'm having trouble figuring out why postman keeps returning empty curly braces with 500 internal server error whenever in use Bearers token in authori ...
I am using the middleware function to get the user id from the jwt token and it is working completely fine but I want it to send a response when there ...
I am trying to verify user emails with JWT. My current set up is that a JWT is sent to a user when they try to log in if they do not have a confirmed ...
I am posting product only if user is Admin, everything is perfect, but unfortunately I am getting "done is not a function" when checking isRevoked tok ...
I have a series of apis that i'm trying to protect by using isRevoked from expressJWT. I'm allowing the GET requests on certain routes but I need to p ...
I'm build an auth0 implementation according to here using a combination of express-jwt and jwks-rsa. However, an error like the below occurred and the ...
I am new in nodejs,expressjs and trying to authenticate routes using express-jwt package by creating a middleware. Everything is working fine with GET ...
Noob question here. I am using Node.JS and Express (with JWT Auth) and am really struggling with the middleware. Sometimes I need to know if a user is ...
I have an endpoint .../webhook/stripe for Stripe to POST event data to. However when Stripe sends and event, it returns a "Not authorized" error that ...
I'm currently working on a project with expressjs. For user authorization I use JWT tokens but until now only access tokens, because I just don't unde ...