How can I remove oauth from admin panel? #27
Answered
by
CrawlerCode
ecan-dearx
asked this question in
Q&A
-
|
I would like to only use oauth on frontend. How can I remove the |
Beta Was this translation helpful? Give feedback.
Answered by
CrawlerCode
Apr 7, 2025
Replies: 1 comment
-
|
The button is only visible if the 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.
0 replies
Answer selected by
CrawlerCode
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The button is only visible if the
userscollection 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:
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.