最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

adonis.js - Multiple Model Authentication using AdonisJS V6 - Stack Overflow

programmeradmin0浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论