Closed xiaoyijun closed 1 month ago
This PR refactors the social sign-in and single sign-on (SSO) functionality to incorporate button loading states, improving user feedback during authentication processes.
By introducing the global redirection mechanism,this PR also fix a bug that the social connector button can be click more than once before 3rd-party sign-in page redirection. (Refer to this Slack thread: https://silverhand-io.slack.com/archives/C05TA6PH1T9/p1721376692062789)
Key changes:
Added loading states for social sign-in and SSO buttons
SocialSignInList
SingleSignOnConnectors
Enhanced useGlobalRedirectTo hook
useGlobalRedirectTo
window.location.replace
window.location.assign
Updated social sign-in and SSO flows
Social sign-in:
SSO:
.changeset
master
Total Size Diff :chart_with_upwards_trend: +2.16 KB
Summary
This PR refactors the social sign-in and single sign-on (SSO) functionality to incorporate button loading states, improving user feedback during authentication processes.
By introducing the global redirection mechanism,this PR also fix a bug that the social connector button can be click more than once before 3rd-party sign-in page redirection. (Refer to this Slack thread: https://silverhand-io.slack.com/archives/C05TA6PH1T9/p1721376692062789)
Key changes:
Added loading states for social sign-in and SSO buttons
SocialSignInList
andSingleSignOnConnectors
componentsEnhanced
useGlobalRedirectTo
hookwindow.location.replace
andwindow.location.assign
Updated social sign-in and SSO flows
useGlobalRedirectTo
for more consistent redirection handlingTesting
Social sign-in:
SSO:
Checklist
.changeset