Skip to content
Snippets Groups Projects
Unverified Commit 0663bd08 authored by Paul Rosenzweig's avatar Paul Rosenzweig Committed by GitHub
Browse files

refresh site settings after logging in with google (#12360)

parent 95c67929
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,10 @@ export const loginGoogle = createThunkAction(LOGIN_GOOGLE, function(
MetabaseAnalytics.trackEvent("Auth", "Google Auth Login");
// TODO: redirect after login (carry user to intended destination)
await dispatch(refreshCurrentUser());
await Promise.all([
dispatch(refreshCurrentUser()),
dispatch(refreshSiteSettings()),
]);
dispatch(push(redirectUrl || "/"));
} catch (error) {
await clearGoogleAuthCredentials();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment