login
This function helps the user to login, using Account Server in a WebView.
Parameters
This code will be returned in onActivityResult() if the calling activity exits
Context of the calling Activity
DSAuthenticationListener which states whether authentication process is successful or not.
An optional email address of the user can allow bypassing the first step of entering the email in the login flow
If specified, the user will be logged in to that account. Otherwise, it will always login with the default account.
This function helps the user to login, using an access token obtained by the containing app.
Parameters
The access token.
If the access token can be refreshed, the refresh token. Optional.
The number of seconds from the time the access token was provisioned to when it will expire. Should be a positive number.
Context of the calling Activity
DSAuthenticationListener which states whether authentication process is successful or not.
If specified, the user will be logged in to that account. Otherwise, it will always login with the default account.