create-go-app/fiber-go-template

Wrong key for claims

Opened this issue · 1 comments

Required check list:

  • I'm gonna mark the checkboxes like this.
  • I didn't find in the repository's issues section similar bug.
  • I understand, this is Open Source and not-for-profit product.
  • This is not about third-party project, framework, package or technology.

Describe the bug:

claims["expires"] needs to be claims["exp"] in order for the jwt_middleware to properly determine if the token has expired

Thanks for opening your first issue here! 🎉 Be sure to follow the issue template!