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

bug : Authentication throwing invalid token error #5

Open
Adarsh-jaiss opened this issue Mar 21, 2024 · 0 comments
Open

bug : Authentication throwing invalid token error #5

Adarsh-jaiss opened this issue Mar 21, 2024 · 0 comments
Labels
bug Something isn't working component/auth help wanted Extra attention is needed

Comments

@Adarsh-jaiss
Copy link
Owner

  • user Authentication throwing invalid token error, even if everthing is perfect
    image

  • After removing abort function from the JWT Authentication function, this is the response :

image

and these are server logs :

Token found in the header
NEVER PRINT SECRET eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImR1bW15X3VzZXIiLCJyb2xlIjoiYWRtaW4ifQ.KvN2yvobSh2PCgLbWCB9P8J9T7jV_q4gJ8P8vCzkn14
token parsed! ---------------->>>>>>>>
code fat rha hai bhai!!!!!!!!!:
{adarsh@gmail.com adarsh@123}
email found!
auth params password :adarsh@123
user password :adarsh@123
password matched!
token from auth_handler.go:  eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFkYXJzaEBnbWFpbC5jb20iLCJleHBpcmVzIjoxNzExMDQ2MzUxfQ.DPs_PQ5383fwmCIqsED1Y5yyv5MMjm3HJ4mw7DC6buw
token created!
[GIN-debug] [WARNING] Headers were already written. Wanted to override status code 401 with 200
response sent!
@Adarsh-jaiss Adarsh-jaiss added bug Something isn't working help wanted Extra attention is needed component/auth labels Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component/auth help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant