We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/TomDoesTech/JWT-Access-Refresh-Tokens/blob/main/finished/api/src/middleware/deserializeUser.ts#L5
deserializeUser function is not functioning correctly.
When the access token expires, so the client does not have it anymore, so our function enters
https://github.com/TomDoesTech/JWT-Access-Refresh-Tokens/blob/main/finished/api/src/middleware/deserializeUser.ts#L8
and leaves the function.
But instead we must have a structure such as:
if(!accessToken){ if(!refreshToken){ return next() } // handle refresh token and generate new access token using it. }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://github.com/TomDoesTech/JWT-Access-Refresh-Tokens/blob/main/finished/api/src/middleware/deserializeUser.ts#L5
deserializeUser function is not functioning correctly.
When the access token expires, so the client does not have it anymore, so our function enters
https://github.com/TomDoesTech/JWT-Access-Refresh-Tokens/blob/main/finished/api/src/middleware/deserializeUser.ts#L8
and leaves the function.
But instead we must have a structure such as:
The text was updated successfully, but these errors were encountered: