-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add a new forceOAuthLogin option to appSlice #146
Conversation
If configured via appSlice, a new fullscreen Login protects the whole app
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/carto-frontend/cra-template-carto/l8u3ox0yl |
const [handleLogin] = useOAuthLogin(oauthApp, onParamsRefreshed); | ||
|
||
return ( | ||
<Container className={classes.containerWrapper}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a Grid component here is better, unless you've found any issue to use it here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merging now, but I'll consider it when we apply the new design, thx!
const [handleLogin] = useOAuthLogin(oauthApp, onParamsRefreshed); | ||
|
||
return ( | ||
<Container className={classes.containerWrapper}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as sample-app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't tested live, but looks good!
forceOAuthLogin
: if configured via appSlice, a new fullscreen Login protects the whole appThis is compatible with the (current) presence of a UserMenu, to Logout or Go to Dashboard.