-
Notifications
You must be signed in to change notification settings - Fork 9
How can I remove oauth from admin panel? #27
Unanswered
ecan-dearx
asked this question in
Q&A
-
I would like to only use oauth on frontend. How can I remove the Sign in with Auth.js
button from admin?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
The button is only visible if the users
collection is your admin user collection. If you specify a different collection, e.g. admins
, the button is no longer displayed.
However, if you only want to hide the button, you can do this as follows:
authjsPlugin({ authjsConfig: nodeAuthConfig, components: { SignInButton: false, // <-- Hide "Sign in with Auth.js" button }, }),
But you are still authenticated and can use the admin panel. If you do not allow your user to use the admin, you can deny this using admin acces control.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment