Accounts & Users
Everything to do with the account behind the app: creating it, signing in, keeping the session alive, and registering the device for push notifications.
The SDK obtains an ID token, stores it in the keychain, and exchanges it for an InstaVision user record. If your app authenticates users elsewhere, you can skip these calls and hand the SDK a token with InstaSDK.shared.setAuthToken(_:) instead.
All calls are on Factory.userService.
In this section
| Page | Covers |
|---|---|
| Account Creation and Deletion | Signing up with email; deleting an account |
| Authentication and Authorization | Signing in, third-party providers, signing out |
| Account Verification | Sending and resending the verification email |
| Password Management | Reset emails and changing a password |
| Profile Management | Reading and updating the user record |
| Notifications | Registering the APNs token for push |
Observe Notification.Name.sessionTokenExpired once, at the top of the app, so a session that expires between requests is handled in one place.