User Management
How to manage your authenticated user in iOS
Get user
Once your user has been authenticated, you can call passage.getCurrentUser()
which will return a PassageUserInfo
instance. When the user is no longer authenticated, this method will return nil
.
Here's an example:
You can learn more about the available user properties here.
Methods for updating user
Change contact info
To change the user's phone number or email, you can follow the examples below. Note that the user will receive a verification email or text message where they'll need to confirm the change.
Manage user passkeys
The following CRUD operations are available for user device passkey credentials:
Sign out user
To log out your user and remove their tokens from the TokenStore
(more on this in the next section), you can simply call passage.signOut()
.
Last updated