Closed mretiinteractivebrokers closed 1 month ago
Hello, @mretiinteractivebrokers 👋. I believe what you're describing is default behavior for the signInWithRedirect
API that displays a sign-in UI that is inside a platform-dependent webview. It will open up an ASWebAuthenticationSession or Custom Tab on iOS devices or Android respectively.
I don't believe there's a way to disable this intermediate webview, as it's part of the federated Auth flow between Apple and Cognito's Hosted UI. Let me know if this helps, and I'll review this internally with our team to make sure there's no workarounds or optimizations that I'm missing.
Hi @cwomack! Thank you for the quick answer! In case there is no workaround then the issue can be closed, if it is the intended behavior.
Appreciate the follow up, @mretiinteractivebrokers. I'll close the issue then for now, but feel free to open a new issue if you hit any other questions, feedback, or blockers when using Amplify!
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
Amplify CLI
Environment information
Describe the bug
Calling Auth.signInWithRedirect with Apple provider in a react-native app, first opens a blank webview (trying to open the cognito hosted ui, then redirects to appleid.apple.com), and only after that the apple sign in bottom sheet is shown.
Is there a way to hide this webwiew, or not open at all?
Expected behavior
When singing in with Apple, only the native bottom sheet should be shown without the blank webview.
Reproduction steps
await signInWithRedirect({ provider: 'Apple', options: { preferPrivateSession: true }, });
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
iPhone 15 Pro
Mobile Operating System
iOS17.6
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
https://github.com/user-attachments/assets/b55487a6-b2eb-446b-9d56-bf6f22c88e2f