[PR #7054] [MERGED] feat(expo): add webBrowserOptions to openAuthSessionAsync #7046

Closed
opened 2026-03-13 13:22:19 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7054
Author: @himself65
Created: 12/29/2025
Status: Merged
Merged: 12/30/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/12/30/expo


📝 Commits (4)

  • 8059c8b feat(expo): add webBrowserOptions to openAuthSessionAsync
  • 19b9858 Update packages/expo/test/expo.test.ts
  • e1d457e Update packages/expo/src/client.ts
  • ebf4da3 docs: update

📊 Changes

2 files changed (+67 additions, -1 deletions)

View changed files

📝 packages/expo/src/client.ts (+25 -1)
📝 packages/expo/test/expo.test.ts (+42 -0)

📄 Description

Related: https://github.com/openid/AppAuth-iOS/issues/402#issuecomment-2021684293
Fixes: https://github.com/better-auth/better-auth/issues/7049


Summary by cubic

Adds webBrowserOptions to the Expo client and forwards it to Browser.openAuthSessionAsync, letting apps configure auth session behavior (e.g., preferEphemeralSession). Fixes better-auth/better-auth#7049.

  • New Features
    • Added ExpoClientOptions.webBrowserOptions (AuthSessionOpenOptions) and pass it to openAuthSessionAsync.
    • Tests cover passing options and defaulting to undefined.

Written for commit ebf4da37ee. Summary will update automatically on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7054 **Author:** [@himself65](https://github.com/himself65) **Created:** 12/29/2025 **Status:** ✅ Merged **Merged:** 12/30/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/12/30/expo` --- ### 📝 Commits (4) - [`8059c8b`](https://github.com/better-auth/better-auth/commit/8059c8bc7f70bf0c2e08b9f67f4c401b09281478) feat(expo): add `webBrowserOptions` to openAuthSessionAsync - [`19b9858`](https://github.com/better-auth/better-auth/commit/19b98585e67038528cc9708b568e8ad569054066) Update packages/expo/test/expo.test.ts - [`e1d457e`](https://github.com/better-auth/better-auth/commit/e1d457eeec032edbad1d8f9ea9405ce368e566c4) Update packages/expo/src/client.ts - [`ebf4da3`](https://github.com/better-auth/better-auth/commit/ebf4da37eec950852880d9e1f3e1e11d0f248ad0) docs: update ### 📊 Changes **2 files changed** (+67 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/expo/src/client.ts` (+25 -1) 📝 `packages/expo/test/expo.test.ts` (+42 -0) </details> ### 📄 Description Related: https://github.com/openid/AppAuth-iOS/issues/402#issuecomment-2021684293 Fixes: https://github.com/better-auth/better-auth/issues/7049 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds webBrowserOptions to the Expo client and forwards it to Browser.openAuthSessionAsync, letting apps configure auth session behavior (e.g., preferEphemeralSession). Fixes better-auth/better-auth#7049. - **New Features** - Added ExpoClientOptions.webBrowserOptions (AuthSessionOpenOptions) and pass it to openAuthSessionAsync. - Tests cover passing options and defaulting to undefined. <sup>Written for commit ebf4da37eec950852880d9e1f3e1e11d0f248ad0. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 13:22:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#7046