Skip to content

feat: should redirect param #207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Velka-DEV
Copy link

This PR aims to resolve issue #206.

Previously, the code attempted to detect a React Native environment by checking if window.location === undefined. However, this condition evaluates to true even in a React Native application (tested with Expo & Expo Router).

This PR introduces an optional shouldRedirect parameter, allowing it to be explicitly set to false. It defaults to true, ensuring this change is non-breaking.

This PR was trying to solve the problem some moths ago #160 (while adding some unwanted reformatting)

If someone could merge this ASAP would be great as the library is actually completely unusable on React Native for OAuth.

@thomasballinger @xixixao

Copy link

vercel bot commented May 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
convex-auth-docs ✅ Ready (Inspect) Visit Preview May 3, 2025 5:50pm

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.

1 participant