[PR #5646] feat(expo): error handling when not set #6137

Open
opened 2026-03-13 12:49:00 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5646
Author: @okisdev
Created: 10/28/2025
Status: 🔄 Open

Base: canaryHead: feat(expo)/error-handling-when-not-set


📝 Commits (1)

  • f61afd7 feat(expo): error handling when not set

📊 Changes

2 files changed (+77 additions, -0 deletions)

View changed files

📝 packages/expo/src/client.ts (+22 -0)
📝 packages/expo/test/expo.test.ts (+55 -0)

📄 Description

This PR adds error handling when expo() is not set in auth.ts on server side.

Related issue #5600.


Summary by cubic

Show a helpful error when using the Expo client and the server isn’t configured with expo(). Prevents silent failures by logging guidance in native apps.

  • Bug Fixes
    • Log a clear configuration error (with docs link) when a 403 is returned on /sign-in, /sign-up, or /get-session and the request has the expo-origin header.
    • Added a test to ensure the message is printed.

🔄 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/5646 **Author:** [@okisdev](https://github.com/okisdev) **Created:** 10/28/2025 **Status:** 🔄 Open **Base:** `canary` ← **Head:** `feat(expo)/error-handling-when-not-set` --- ### 📝 Commits (1) - [`f61afd7`](https://github.com/better-auth/better-auth/commit/f61afd74a69b54181479d4a2802d6d3c9089c860) feat(expo): error handling when not set ### 📊 Changes **2 files changed** (+77 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/expo/src/client.ts` (+22 -0) 📝 `packages/expo/test/expo.test.ts` (+55 -0) </details> ### 📄 Description This PR adds error handling when `expo()` is not set in `auth.ts` on server side. Related issue #5600. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Show a helpful error when using the Expo client and the server isn’t configured with expo(). Prevents silent failures by logging guidance in native apps. - **Bug Fixes** - Log a clear configuration error (with docs link) when a 403 is returned on /sign-in, /sign-up, or /get-session and the request has the expo-origin header. - Added a test to ensure the message is printed. <!-- 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 12:49:00 -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#6137