I had trouble choosing which thing to use for a sign in page.
I was thinking of what I could use for a sign in page, stored variables or the Sign in thing?
This is what I’m talking about the sign in thing in case you guys don’t understand:
So it would be helpful if someone could figure which is the best way.
It uses both the Sign In component and the stored variables.
You use the Sign In component to authenticate and verify the user using the email/password combination.
In order not to force the user to type in the email and password every time the app starts, you will use stored variables to store the user email and password and pass it automatically to the app to allow the user to sign in to your all automatically.
So, for best practice, you need to use both the Sign In component and the stored variable in your app.
For what it’s worth, I’m using the technique in the video above for an app I’m developing. It works really well. Although I’m generating a random email and password because I don’t need the user to actually sign in… I just need Firebase authentication which it provides. But that’s kind of a tangent.
I use Airtable in one of my apps as I need to be able to create and then have full control over the user names and passwords. I then use a variable to control whether the login is user or admin for that session.
@ant_1
Sign in (from Firebase) is SO easy - and free - there’s not really much reason not to use it!
The only reason I would use something else is if I need users to sign into an external API (generally for work purposes), or to link the Firebase login to an external set of data e.g. multiple APIs.
I also use the OneSignal component as it gives a unique ID which one can store if inclined. For example; to identify users in another system when submitting data, or to unregister users via OneSignal if they don’t want to receive notifications.
Hi,
I have one question. Is the API Key and Database URL necessary? Because I’m gonna need to learn how to use fire base and the the API key and database URL. So if you could help me, that would be great.
Have you created a Firebase project?
If you do you need to also choose web project. The API key will be in the configuration setup code of the web project.
The database URL is also in the same configuration file.
Hi @muneer,
I have a problem with my Sign in Page. I’ve copied the API Key and Database URL but while I was previewing my Sign in page, it said please verify your email. Here is the screen:
The blocks you are using change the value of the label to “Please verify your email” if the email hasn’t been verified yet. Check your email inbox and click on the verification link/button to complete the sign up.