Skip to content

Conversation

ahmedhamouda78
Copy link
Member

@ahmedhamouda78 ahmedhamouda78 commented Aug 26, 2025

Description of changes

This PR adds authentication support for Chromebook devices in the rtn-web-browser package. The changes include:

  • Added isChromebook() function to detect Chromebook devices using Expo Device API and native ChromeOS module
  • Implemented openAuthSessionChromeOs() function to handle auth sessions on Chromebook using Linking.openURL() instead of native browser tabs
  • Updated openAuthSessionAsync() to detect Chromebook devices and route to the appropriate auth session handler
  • Enhanced Android auth flow to fallback gracefully when Chromebook detection fails

Issue #, if available

#14459

Description of how you validated changes

Checklist

  • PR description included
  • yarn test passes
  • Unit Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

Checklist for repo maintainers

  • Verify E2E tests for existing workflows are working as expected or add E2E tests for newly added workflows
  • New source file paths included in this PR have been added to CODEOWNERS, if appropriate

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

pranavosu
pranavosu previously approved these changes Aug 28, 2025
mockPlatform.OS = 'ios';
});

describe('isChromebook', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also add tests for the other cases?

functions: 100,
lines: 100,
statements: 100,
branches: 25,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why reduce the coverage thresholds?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants