-
Notifications
You must be signed in to change notification settings - Fork 9
-
Hi, I was wondering how I can combine default payloadcms username/password credentials with this library.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments 3 replies
-
This is not possible at the moment, but it is already on my roadmap.
Beta Was this translation helpful? Give feedback.
All reactions
-
In the latest version 0.8.0
you have the option of enable the local strategy.
authjsPlugin({ authjsConfig: authConfig, enableLocalStrategy: true // <-- Enable local strategy }),
The feature is still experimental, but you are welcome to try it out. If you have found any issues, please report these. Thank you
Beta Was this translation helpful? Give feedback.
All reactions
-
This is awesome! Looking into it...
Beta Was this translation helpful? Give feedback.
All reactions
-
Does this mean I can use payload.login
or should I use authjs's signIn
with credentials
?
Beta Was this translation helpful? Give feedback.
All reactions
-
Yes. You can use the native Payload authentication system and payload.login()
.
Normally, this plugin disables the local Payload strategy. The option enableLocalStrategy
does not disable the local strategy, so both strategies (local and Auth.js) can be used in parallel.
Beta Was this translation helpful? Give feedback.