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 remove oauth from admin panel? #27

Unanswered
ecan-dearx asked this question in Q&A
Discussion options

I would like to only use oauth on frontend. How can I remove the Sign in with Auth.js button from admin?

You must be logged in to vote

Replies: 1 comment

Comment options

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.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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