In Keystone 6, can we disable the user authentication/user login?

whodeee

It looks like there was a somewhat straightforward way to disable in in Keystone 5 via - https://github.com/keystonejs/keystone-5/blob/main/docs/guides/authentication.md

But I can't seem to find any resources/direction for Keystone 6. Any guidance from the community on this?

whodeee

I was able to get it working for my needs. In the keystone.js file, replace

export default withAuth(

with

export default config(

and disable the imports for both withAuth and sessions

// import { withAuth, session } from './auth';

also don't forget to remove session from the config export and the trailing ) at the end.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related