Firebase otp login

i have created an login screen using firebase phone number auth but when i closing the app and reopening it again it is asking for otp. What can i do to store the login in app until user clicks logout

Use tiny db component with if, then and else conditions.

When user first time login, store value to tiny db.

When screen initialize if tiny db get value is equal to stored value then direct open other screen else show him login screen.

help with blocks please. I have the same login problem.

Your blocks are wrong.

On login success, you have to compare provider and not phone number.

Also in screen initialize block, use equal to block to check tiny db value is empty or not.

does not work…