Question about Firebase, auth and react
We have a few thousand lines of code specifically for managing users and a simple wrapper around our dynamo backend.
We couldn’t find a react component for login flows, so we build all this logic ourselves
- login page w/ social login - register page - logout - logic for redirecting you if you were already logged in - logic for redirecting you to login if you aren’t logged in - forgot password - verify - demo user account - notifying users of password requirements - handling failed registration - handling failed logins - handling google social login
We integrated with cognito and dynamo, but I think that even with firebase or aws amplify we would have had to write a lot of the logic ourselves.
Did we do something wrong? Is this just what you have to do to get logins and a per user backend working?
6 comments
[ 5.0 ms ] story [ 31.1 ms ] threadthe list i made about the different pages we had to build to get this to work correctly, it took one of our devs a few weeks to really get the login and account system and integrated with AWS cognito
https://www.keycloak.org/
https://www.npmjs.com/package/firebaseui