When does authorization occur during app login? - authentication

I'm currently building the login/registration part of an application (similar to WhatsApp login).
The flow is as follows:
Screen #1: User enters phone number for authentication
Screen #2: the user will need to enter a 4 digit number (which was sent via SMS) to verify the phone number
Screen #3: In the case where the user is a new user, s/he will enter the full name. If the user is a returning user, screen #3 will not show up (jump to screen #4).
Screen #4: User is taken to the home screen of the app.
My question here is: will the access token and the refresh token be returned in screen #2 from phone verification API OR in screen #3 from entering the full name API?
I also want to know what the return value of phone verification and entering full name APIs.

Related

React Native Expo autofill field with current system user's email

I want to autofill a TextInput with the user's current Email from the Android/iOS system. However, at that point the user is not yet authenticated, because that's actually part of the registration (where users can also use a different Email).
How do I get this email?
I checked the permissions page but there is none of them about the user credentials like email.
I also checked expo Contacts but it seems to be related only to the contact lists and not about the current system user.
Is this even possible with RN+expo?

Autofill Username and Password for multiple users in react native?

I'm creating a simple app in which I'm saving a session of a current user using a token. Once the user login and close the app next time user will go to the home page. But If the user logs out. Next time will go to the login page and now if the user enters the initial characters of the name. I want to automatically get his/her name and password and fill in the form like in browser and web apps
Any help?
If need more description. let me know in the comment section.

Authenticated Connector using import.io with extra screen not working

I am trying to create an authenticated login to a website using import.io but before I get to the username and password screen I have to enter an ID number in another screen. I have recorded all the actions, but when I stop recording I get "You did not enter just a username and password" and wont let me go any further.
If I enter the ID number and navigate to the username and password screen THEN start recording, import.io rather unhelpfully reloads the page, which takes me back to the ID number screen.
How do I get import.io to accept the ID, username and password as logon credentials OR how do I stop import.io from reloading the page when I hit record?

fbAsyncInit: username displayed after 3 times refresh

I am using the PHP Facebook API and the Javascript part to check if an user is logged in.
But my username will be displayed after 3 times refreshing the page. Here are the steps that I take.
Log into Facebook
Go to my website (first time visit)
Refresh my website 2 times
My username will be displayed
Does someone know something about this problem?

Facebook Registration Plugin prefills fields without permission?

My understanding was that the registration plugin allows you to use the same reg form for users not registering with Facebook as well with Facebook. However, if a user is logged into Facebook and visits the registration page the form prefills information and only gives them the option to register with Facebook. That's kind of a freaky user experience. They hit the register button on your website and it auto fills fields with Facebook info without permission. Just because a user is logged into facebook doesn't necessarily mean they actually want to create the account with their Facebook information.
Here's what I have handled so far by the registration plugin:
User is not logged into Facebook and registers via the plugin, but with my site authentication not Facebook.
User is not logged into Facebook, uses the plugin to log into Facebook, fields are prefilled and user registers via Facebook.
Here's what I dont have handled
3. User is already logged into Facebook, but may want to register with my site authentication and NOT connect the account to their Facebook account. Currently, it prefills the forms and provides them with only a register button connecting Facebook to my app.
Basically, I want the user to have to opt-in to register with Facebook even if they are logged into Facebook, but I want to use the Registration plugin form. Is this possible?
I hope that makes sense.
A user can clear the fields by ckicking the X when mouseover the name field
What you need to do is something similar to Scribd approach, where you can by default wrap and hide the "Login with facebook" button (or the registration form if the user is already logged in and connected!) and for example in your form div/container have a checkbox (a location over the flow is preferred) stating:
Register with my Facebook account
Or something more catchy and when the user clicks/checks the input the facebook DIV will slide down and used instead of your registration routine.