AuthenticationRepository
Constructors
Properties
A StateFlow with the status of whether or not this version of the app is supported by Bridge. When Bridge services return a http status code of 410, this will emit an AppStatus.UNSUPPORTED.
Functions
Get the ID of the current study.
Is the current session authenticated.
Set the cached UserSessionInfo. This should only be used for migrating apps using old Bridge client libraries. This will do nothing if there already is a session.
Will send an SMS message with a code that can be used to call the server and generate a session.
Resend an SMS message to the provided phone number asking the recipient to verify their phone number. Whether the phone has been registered or not through sign up, this method will return 200 in order to prevent \"account enumeration\" security breaches.
Get the current UserSessionInfo object.
Get the current UserSessionInfo object as a Flow. The flow will emit a new value whenever the session is updated. This allows observers to watch for changes to authentication or consent status.
Using the token supplied via an SMS message sent to the user, request a session from the server.