adonisjs / auth

Official Authentication package for AdonisJS
https://docs.adonisjs.com/guides/auth/introduction
MIT License
187 stars 65 forks source link

Why my token from auth "memberjwt" valid on middleware "jwt" auth ? #203

Closed anggi117 closed 2 years ago

anggi117 commented 2 years ago

I have 2 auth JWT (jwt and memberjwt) image

and im already set the middleware to "jwt" in route. image

but why my token generate from "memberjwt" auth valid on auth "jwt" ?

is there any solution?

this my route using auth "memberjwt" and email its : kotnol@gmail.com image

but im check it using auth.getuser() its still showing with different data, even though that token from memberjwt image

i want that token from "memberjwt" auth its invalid in "jwt" auth

thetutlage commented 2 years ago

Issue doesn't adhere to the guidelines of creating a proper issue.

  1. Make sure that you are only reporting bugs or submitting feature requests on Github.
  2. In case of feature requests, please be descriptive and explain how this feature helps a broader audience and not just you.

If you are not submitting a bug and neither a feature request, then please use the discussion threads

In any case, issues which are not descriptive enough will be closed. Please respect our time.