User and Administrator tokens #3686
-
I have an administrators table, and a users table. I would like to use two separate token tables since I do not want the tokens to be exchangeable. I cannot figure out how to get the guard config to let me have more than one guard. I have 2 apis, one is administrators api and the other is users api but both are just scoped routes with different authentications. This is something I've achieved in other solutions but I'm somewhat new to adonisjs and am trying to get my bearings on it.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I actually figured this out. I'll post the answer for adonisjs v5. If you are very experienced in typescript this isn't an issue. If you are not, it becomes fairly confusing how the files relate. |
Beta Was this translation helpful? Give feedback.
I actually figured this out. I'll post the answer for adonisjs v5. If you are very experienced in typescript this isn't an issue. If you are not, it becomes fairly confusing how the files relate.