Skip to content

Middleware GetHeader Method Error #2

@AbdulrahmanDaud10

Description

@AbdulrahmanDaud10

What this issue is about:

  • In the middleware function AuthorizeJWT is not working correctly since the method ctx.GetHeader("Authorization") is expecting to get the header but this is not happening.
  • The solution I used was after signing in, I would manually add the token generated on the header section in Postman for the routes to work. But you have to keep doing it all the time after the token expires which is a little tiresome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions