Skip to content
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

Merged
merged 1 commit into from
Dec 10, 2020

Conversation

VictorVelarde
Copy link
Contributor

forceOAuthLogin: if configured via appSlice, a new fullscreen Login protects the whole app

image

This is compatible with the (current) presence of a UserMenu, to Logout or Go to Dashboard.

If configured via appSlice, a new fullscreen Login protects the whole app
@vercel
Copy link

vercel bot commented Dec 9, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/carto-frontend/cra-template-carto/l8u3ox0yl
✅ Preview: https://cra-template-carto-git-forced-oauth-login.carto-frontend.vercel.app

const [handleLogin] = useOAuthLogin(oauthApp, onParamsRefreshed);

return (
<Container className={classes.containerWrapper}>
Copy link
Contributor

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

Copy link
Contributor Author

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}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as sample-app

Copy link
Contributor

@neokore neokore left a 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!

@VictorVelarde VictorVelarde merged commit db10f2f into master Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants