Need help with creating Remember Me option

I know what two components to use. I have sign up and log in screens working with Firebase. I just need to know what blocks of code I need and if I need to use firebase DB or local db.

Hi there,

Check out this Sign In template that remembers a user’s details as stored variables ‘email’ and ‘password’ if they successfully sign up or sign in with those details. No Firebase or Local DB needed!

If the user signs out of the app, ‘email’ and ‘password’ are set to empty strings. When the app starts, if there are stored values for ‘email’ and ‘password’, the app will sign the user in with them automatically.

I’m working on a series of posts explaining this template, but the functions you need to focus on are: ‘signin’, ‘signup’, ‘when SignInUp starts’, and ‘remember_details_cond’.

The ‘App’ screen will show you how to delete a user’s details when they sign out.

Let me know if you have any further questions!

1 Like