Skip to content
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

Redirected to "Unmatched Route" Screen #2

Open
NR3101 opened this issue Sep 14, 2024 · 3 comments
Open

Redirected to "Unmatched Route" Screen #2

NR3101 opened this issue Sep 14, 2024 · 3 comments

Comments

@NR3101
Copy link

NR3101 commented Sep 14, 2024

Redirected to "Unmatched Route" Screen when we use OAuth(like Google, GitHub) providers for few seconds and then the app redirects to the home or back page. Could not resolve this any ideas how to solve this?

@kagantemizkan
Copy link

kagantemizkan commented Sep 14, 2024

create oauth-native-callback.tsx in your app folder and paste this code:

import { Redirect } from "expo-router";

export default function Page() {
  return <Redirect href="/" />;
}

also delete router.back() in your onSelectAuth function inside login page.

@NR3101
Copy link
Author

NR3101 commented Sep 15, 2024

Thanks for the solution. It is working for me. There is a slight flash and then we are redirected to home.
One more issue : My build is working when I run it with "npx expo run:android" but after building it with eas and running the apk on my physical device it only flashes the splash screen for a slight moment and doesn't go any further and sometimes for a fresh development build on my device using "npx expo run:android" its shows error : "[must be called from main thread]" and then automatically restarts well.

@kagantemizkan
Copy link

Its maybe the error that i mentioned in this issue.

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

No branches or pull requests

2 participants