Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How can I combine payloadcms username/password credentials and this library? #17

engin-can started this conversation in General
Discussion options

Hi, I was wondering how I can combine default payloadcms username/password credentials with this library.

You must be logged in to vote

Replies: 2 comments 3 replies

Comment options

This is not possible at the moment, but it is already on my roadmap.

You must be logged in to vote
0 replies
Comment options

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

You must be logged in to vote
3 replies
Comment options

This is awesome! Looking into it...

Comment options

Does this mean I can use payload.login or should I use authjs's signIn with credentials?

Comment options

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question

AltStyle によって変換されたページ (->オリジナル) /