diff --git a/FAQ.md b/FAQ.md index 0ca4fa248..4b67aa25b 100644 --- a/FAQ.md +++ b/FAQ.md @@ -8,10 +8,9 @@ 6. [How can I programmatically close the iOS alert box?](#6-how-can-i-programmatically-close-the-ios-alert-box) 7. [Auth0 web browser gets killed when going to the background on Android](#7-auth0-web-browser-gets-killed-when-going-to-the-background-on-android) 8. [How to resolve the _Failed to start this transaction, as there is an active transaction at the moment_ error?](#8-how-to-resolve-the-failed-to-start-this-transaction-as-there-is-an-active-transaction-at-the-moment-error) -9. [How can I prevent the autogenerated redirect_uri from breaking if the applicationId has mixed cases or special characters in it on Android?](#9-how-can-i-prevent-the-autogenerated-redirect_uri-from-breaking-if-the-applicationId-has-mixed-cases-or-special-characters-in-it-on-android) -10. [Why doesn't `await authorize()` work on the web? How do I handle login?](#10-why-doesnt-await-authorize-work-on-the-web-how-do-i-handle-login) -11. [Why do my users get logged out frequently? How do I keep them logged in?](#11-why-do-my-users-get-logged-out-frequently-how-do-i-keep-them-logged-in) -12. [How can I prompt users to the login page versus signup page?](#12-how-can-i-prompt-users-to-the-login-page-versus-signup-page) +9. [Why doesn't `await authorize()` work on the web? How do I handle login?](#9-why-doesnt-await-authorize-work-on-the-web-how-do-i-handle-login) +10. [Why do my users get logged out frequently? How do I keep them logged in?](#10-why-do-my-users-get-logged-out-frequently-how-do-i-keep-them-logged-in) +11. [How can I prompt users to the login page versus signup page?](#11-how-can-i-prompt-users-to-the-login-page-versus-signup-page) ## 1. How can I have separate Auth0 domains for each environment on Android? @@ -262,11 +261,7 @@ You can invoke `cancelWebAuth()` to manually clear the current login transaction If you don't need SSO, consider using `ephemeral sessions` or `SFSafariViewController` instead of `ASWebAuthenticationSession`. See [2. How can I disable the iOS _login_ alert box?](#2-how-can-i-disable-the-ios-login-alert-box) for more information. -## 9. How can I prevent the autogenerated redirect_uri from breaking if the applicationId has mixed cases or special characters in it on Android ? - -It is recommended to have your applicationId in lower case without special characters to prevent any mismatch with the generated redirect_uri. But in the scenario where you require your applicationId to be of mixed case, to avoid any mismatch , the user can pass a `redirectUri` which matches the one provided in the manage dashboard as part of the `AgentLoginOptions` property. - -## 10. Why doesn't `await authorize()` work on the web? How do I handle login? +## 9. Why doesn't `await authorize()` work on the web? How do I handle login? This is a key difference between native and web platforms. @@ -313,7 +308,7 @@ const MyComponent = () => { }; ``` -## 11. Why do my users get logged out frequently? How do I keep them logged in? +## 10. Why do my users get logged out frequently? How do I keep them logged in? If your users are being asked to log in again after a short period (e.g., when they close and reopen the app), it's likely because the SDK cannot silently refresh their tokens. @@ -339,7 +334,7 @@ const handleLogin = async () => { By including this scope, the SDK will receive and securely store a `refreshToken`. This token will then be used by `getCredentials()` to maintain the user's session across app launches, providing a much smoother user experience. -## 12. How can I prompt users to the login page versus signup page? +## 11. How can I prompt users to the login page versus signup page? If your application has one button for logging in and one button for signing up, you can prompt Auth0 to direct the user to the appropriate authentication page as such: diff --git a/src/plugin/withAuth0.ts b/src/plugin/withAuth0.ts index 62cf034b5..67ce5c5df 100644 --- a/src/plugin/withAuth0.ts +++ b/src/plugin/withAuth0.ts @@ -101,7 +101,7 @@ const withAndroidAuth0Manifest: ConfigPlugin = ( config, auth0Configs ) => { - let applicationId = config.android?.package; + let applicationId = config.android?.package?.toLowerCase(); return withAndroidManifest(config, (manifest) => { return addAndroidAuth0Manifest(auth0Configs, manifest, applicationId); });