auth0 / Auth0.Android

Android toolkit for Auth0 API
https://auth0.com
MIT License
216 stars 133 forks source link

Force login with login prompt #683

Closed johnnyzen closed 1 year ago

johnnyzen commented 1 year ago

Checklist

Description

What has happened to prompt=login? The documentation page is 404? https://auth0.com/docs/login/max-age-reauthentication

I am trying to prevent auto login when using WebAuthProvider.login as multiple users are sharing same device.

Thanks

Reproduction

WebAuthProvider.login(account).withOrganization(getString(R.string.com_auth0_organisation))

Additional context

No response

Auth0.Android version

2.9.3

Android version(s)

13

poovamraj commented 1 year ago

@johnnyzen You can see the sample below

val credentials = WebAuthProvider.login(account)
                .withParameters(mapOf("prompt" to "login"))
                .await(requireContext())