-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Request] Skip Auth.js sign-in page on SSO login if there is only one provider #1913
Comments
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
I think it's better to skip choose If there's only one provider. But the implement method need to be think. |
@arvinxx Thanks. Will try to implement. |
This change will require significant modifications to existing code and may introduce new rules for using login hooks. Please carefully consider the significance of this change and if necessary, please also change documentation for sso development in the PR. |
This issue is closed, If you have any questions, you can comment and reply. |
🎉 This issue has been resolved in version 1.9.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🥰 Feature Description
Currently, LobeChat sends the user to the sign-in page provided by Auth.js (e.g. the screenshot below) to select the provider to continue.
However, as LobeChat does not support email or credentials provider for now, if there's only one SSO provider configured, it does not make much sense to display a button for the user only to click again. I think it can be better to skip this page and redirect the user directly to the SSO provider if there is only one to choose from.
🧐 Proposed Solution
According to the docs, ID of the selected provider can be provided to calls to
signIn()
to skip the sign-in page and redirect to the OAuth2 provider directly.I'll be happy to submit a PR if we can make this change.
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: