Sign in once
Integrating into your app's user lifecycle
A recommendation to perform regular reconciliation
Technical details
Your app -> Your identity provider
Your app -> Your backend API
Your backend service <-> Vital API
Your backend API -> Your app
signIn
method with the Vital Sign-In Token:signIn()
throws an error when you have already signed in with the Vital SDK.You can inspect the Core SDK status at any time for troubleshooting. You can
also rely on the Core SDK status to reconcile differences between your own user session state and Vital SDK sign-in.Voila!
configure(...)
and setUserId(...)
once to “sign-in” the user persistently when using the Vital API Key scheme.signOut()
.
This erases any persistent user session and configuration stored by the Vital Core and Health SDKs.
Condition to migrate
useApiKey
(i.e., the user is signed in using Vital API Key).Obtain a Vital Sign-In Token
Sign-in with the token
signIn
method would automatically migrate, as
long as the supplied Sign-In Token is compatible with the existing API Key sign-in (i.e., having the same Vital user ID,
same Vital environment, and same Vital region).