Skip to content
New issue

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

Issue Occur in LogOut #83

Open
Talhaayubkhan opened this issue Jan 23, 2024 · 7 comments
Open

Issue Occur in LogOut #83

Talhaayubkhan opened this issue Jan 23, 2024 · 7 comments

Comments

@Talhaayubkhan
Copy link

if i send req using postman (generally issue occur in logout route)!!
jwt must be a string
Error: Invalid AccessToken
at file:///C:/Users/win11/OneDrive/Desktop/Backend/src/middleware/auth.middleware.js:30:17

@Talhaayubkhan Talhaayubkhan changed the title Issue Occur when LogOut Issue Occur in LogOut Jan 24, 2024
@arush6477
Copy link

Hey @Talhaayub1 i went through your repo and found out that you the issue
The issue is in your loginUser function in the User controllers
in response you are not sending the "tokens in cookies"
it should be -
.cookie("accessToken" , accessToken , options) .cookie("refershToken" , refreshToken , options)

Screenshot 2024-01-25 130439

@Talhaayubkhan
Copy link
Author

yes i notice it, but finally i solve the issue after 2 days!!! Thanks Mannnnn 🙌

@vrk0ranit
Copy link

I'm getting error in logout user when I send request through Postman it's through an error of jet malformed

@abhi-20
Copy link

abhi-20 commented Mar 6, 2024

getting same error

logout_videotube

@vrk0ranit
Copy link

vrk0ranit commented Mar 6, 2024 via email

@Mayank06711
Copy link

Error: jwt must be a string
I`m getting this error on logout request I don't know how to solve this issue sourcelink
checked my code number of times

@AdarshTheki
Copy link

const options = { httpOnly:true }
// remove secure: true to resolve this problem to get accessToken to undefine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants