Fix failing login in Firefox browser (#970)

The bug was introduced in OAuth2 implementation (1645e2fd), where the tokenAuthLoading flag from AuthProvider was not used and it did not blocked UI in loading state.
This commit is contained in:
Dawid Tarasiuk 2021-02-03 09:22:04 +01:00 committed by GitHub
parent 8ece366660
commit db4fc1d8c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,7 +86,7 @@ const LoginView: React.FC<LoginViewProps> = ({ params }) => {
externalAuthentications={ externalAuthentications={
externalAuthentications?.shop?.availableExternalAuthentications externalAuthentications?.shop?.availableExternalAuthentications
} }
loading={externalAuthenticationsLoading} loading={externalAuthenticationsLoading || tokenAuthLoading}
onExternalAuthentication={handleRequestExternalAuthentication} onExternalAuthentication={handleRequestExternalAuthentication}
onPasswordRecovery={() => navigate(passwordResetUrl)} onPasswordRecovery={() => navigate(passwordResetUrl)}
onSubmit={handleSubmit} onSubmit={handleSubmit}