I am using AdonisJS V6 ("@adonisjs/core": "^6.17.2"
) and auth version "@adonisjs/auth": "^9.3.1"
, for backend development. I have two models User and Admin. Both models have email and password fields. Both User and Admin have totally different data. I don't want to use role based authentication. I want to build a multiple model authentication for my system. Something like auth.use('user').generate()
and auth.use('admin').generate()
would be great for me. I would be very very grateful if anyone finds time to solve the problem. Thanks in advance. Feel free to ask anything.
Regards. I
adonis.js - Multiple Model Authentication using AdonisJS V6 - Stack Overflow
评论列表(0)
- 暂无评论