Creating a MongoDB/Mongoose user provider for auth using the access tokens (or other) guard (v6) #4381
-
Hello, I'm looking for help on how to create a custom user provider for Mongoose models. Ideally I would like to just make a custom user provider and still use the tokens guard, however if I need to make a custom guard that's fine. I've read the docs on custom auth guards and looked at the lucid user provider source to try adapt it but it's too difficult to follow. Thanks for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hello, I will be writing a guide for the same by the end of this week. So stay tuned! |
Beta Was this translation helpful? Give feedback.
-
Do not restrict the session guard to use lucdModel, this is difficult when need to use mongodb, I am creating a project which needs mongodb but I am unable to use the available auth_guard due to the resriction of session guard to lucidmodel |
Beta Was this translation helpful? Give feedback.
Hello, I will be writing a guide for the same by the end of this week. So stay tuned!