tyf
May 13, 2022, 11:08pm
3
Hello @thupili_charwaka welcome to the community!
I don’t believe there is - The recommended approach here is to use WebAuthProvider
as outlined in our Android quickstart - This method will use a call to /authorize
where an audience param can be included. Please see our Android sample:
if (cachedUserProfile == null) {
binding.inputEditMetadata.setText("")
}
}
private fun loginWithBrowser() {
// Setup the WebAuthProvider, using the custom scheme and scope.
WebAuthProvider.login(account)
.withScheme(getString(R.string.com_auth0_scheme))
.withScope("openid profile email read:current_user update:current_user_metadata")
.withAudience("https://${getString(R.string.com_auth0_domain)}/api/v2/")
// Launch the authentication passing the callback where the results will be received
.start(this, object : Callback<Credentials, AuthenticationException> {
override fun onFailure(exception: AuthenticationException) {
showSnackBar("Failure: ${exception.getCode()}")
}
override fun onSuccess(credentials: Credentials) {
cachedCredentials = credentials
showSnackBar("Success: ${credentials.accessToken}")
Hope this helps!