feat: add useTrustedWebActivity option for Android Web Auth#1590
feat: add useTrustedWebActivity option for Android Web Auth#1590subhankarmaiti wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (10)
📝 WalkthroughWalkthroughThis PR adds an optional ChangesTrusted Web Activity option for Android web auth
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant ExampleApp
participant NativeBridgeManager
participant AndroidModule
ExampleApp->>NativeBridgeManager: authorize({ useTrustedWebActivity: true })
NativeBridgeManager->>AndroidModule: webAuth(..., allowedBrowserPackages, useTrustedWebActivity)
AndroidModule->>AndroidModule: withTrustedWebActivity() on login builder
ExampleApp->>NativeBridgeManager: clearSession({ useTrustedWebActivity: true })
NativeBridgeManager->>AndroidModule: webAuthLogout(..., allowedBrowserPackages, useTrustedWebActivity)
AndroidModule->>AndroidModule: withTrustedWebActivity() on logout builder
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Adds a
useTrustedWebActivityoption toauthorizeandclearSession. On Android, this launches the login/logout flow as a Trusted Web Activity (full-screen, no address bar) instead of a Custom Tab, falling back to a Custom Tab if Digital Asset Links verification fails. No-op on iOS and Web.Requires registering the app's SHA-256 fingerprint and package name in the Auth0 Dashboard (see EXAMPLES.md).
Usage
Summary by CodeRabbit
New Features
Documentation
Tests