Use Twitter Digits to extend your app's authentication capabilities, and log in your users with passwordless authentication using their phone number.
Create a free Twitter Digits account online using Fabric. This is the account management platform that Twitter uses to manage your Twitter integrations for your apps.
Once you've done so and installed Digits to your app, follow the steps on the Digits Sandbox to configure your native app to test out the functionality in debug mode.
When you have this set up, you'll need to obtain OAuth Echo Headers:
Now you can make a request with these header values with the new mutation called
loginUserWithDigitsthat will allow you to log in a user with this integration.
It will return a JWT token that you need to include in your future requests as the bearer token for your Authorization header so that we can authenticate this particular logged in user.
This works across authentication mechanisms on Scaphold, so you can link any number of social or passwordless authentication flows.
We've built a little playground for you to test out passwordless auth using Twitter Digits in an iOS app.
Please reference this example if you're unfamiliar with how to obtain OAuth Echo Headers.