Get Started
Get Started with Passage for iOS
If you haven't already, you'll need to add Passage to your iOS app.
Check current auth state
Declare an instance of Passage
.
Check to see if the user is currently signed in.
Register new user
The Passage class comes with a convenient, simplified register
method that will attempt to:
Prompt the user to create a passkey
On successful passkey creation, method will create a new user account and return an
AuthResult
that contains the user’s tokensOn a user cancellation or failure of passkey creation, method will use your Passage app’s fallback method (one-time passcode or magic link) and return an
AuthFallbackResult
that contains an id used for verification.
Log in existing user
The Passage class comes with a simplified login
method that will attempt to:
Prompt the user to login with a passkey
On successful passkey login, method will return an
AuthResult
that contains the user’s tokensOn a user cancellation or failure of passkey login, method will use your Passage app’s fallback method (one-time passcode or magic link) and return an
AuthFallbackResult
that contains an id used for verification.
Want more? 🤩
These simplified register
and login
methods do a lot of heavy lifting for you, but you might want more customized behavior or visibility into the process. If so, jump into our technical docs.
Last updated