Open PeterArriaza opened 3 years ago
Some thoughts on how to move forward with this ticket:
Additionally some more thought needs to go into grooming and breaking down these tickets into more granular/smaller tasks that will be easier to review and merge. As a project, Phlask still needs to think about what kind of features we want to support for users, and so there's a high probability that we'll pivot and adjust these tickets as we build out features and learn more about the problem space.
Let's loop back next hack night and set aside some time to discuss and break down these tickets some more.
const theme = createTheme()
export default function App() {
const [firebaseInitialized, setFirebaseInitialized] = useState(false)
useEffect(() => {
firebase.isInitialized().then(val => {
setFirebaseInitialized(val)
})
})
return firebaseInitialized !== false ? (
<MuiThemeProvider theme={theme}>
<CssBaseline />
<Router>
<Switch>
<Route exact path="/" component={HomePage} />
<Route exact path="/login" component={Login} />
<Route exact path="/register" component={Register} />
<Route exact path="/dashboard" component={Dashboard} />
</Switch>
</Router>
</MuiThemeProvider>
) : <div id="loader"><CircularProgress /></div>
}
There is a user-auth branch made by Pete (I think it's called pete/auth) which has a good similar code but when trying to reach beta.phlask.me/login page, there's a 403 error in the network (I'm assuming it's User access denied); trying to replicate the problem on my own machine hasn't been working so I decided to replace the code. But before I do that I'm trying to figure out the broken functionality of Pete's code and how to follow https://github.com/firebase/firebaseui-web/tree/master/demo
I was looking at the app last night and realized that the OAuth sign-in flow does work on the beta site, but once authentification is finished, the page refreshes and the user does not stay signed in. I'll look more into it and try and debug this issue.
Is your feature request related to a problem? Please describe. As a user, I'd like to be able to sign up for Phlask or sign in to my existing account, so that I can access a customized in app experience.
Describe the solution you'd like Solution integrating authentication provider (Auth0) to react app that stores user information in Firebase. The user should have a profile page or icon that shows that they are logged in on the homepage.
Describe alternatives you've considered 3rd party/social media sign in
Additional context
https://docs.google.com/document/d/1_zjXc8J1pvc-Wdbu6d1_a4yHtv6xxtw2PNH9LKi1ru4/edit?ts=6088a411