error: [logoutUser] Failed to destroy session. Cannot read properties of undefined (reading 'destroy') #6597
Unanswered
geodanchev
asked this question in
Troubleshooting
Replies: 1 comment 1 reply
-
If it fails, it means there was no session to destroy, it's not an issue. How this is handled varies by login method. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I try to logout, I got this error in the console of the backend application.
The code is found in
const logoutUser = async (req, refreshToken)
req.session.destroy();
the sessions is undefined.
Is this solvable by using the following example ?
Beta Was this translation helpful? Give feedback.
All reactions