Skip to content

Commit

Permalink
Hopefully fix redirect actually?
Browse files Browse the repository at this point in the history
  • Loading branch information
arctixdev committed Dec 22, 2024
1 parent fc3b9f6 commit adc8aca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/(tabs)/redirect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export default function Redirect() {
return;
}

const appScheme = `echogame://login?access_token=${access_token}`;
const fallbackUrl = `/auth?access_token=${access_token}`; // Web login fallback
const appScheme = `echogame://auth?access_token=${access_token}`;
const fallbackUrl = `https://new.echogame.xyz/auth?access_token=${access_token}`; // Web login fallback

// Try opening the mobile app
const timeout = setTimeout(() => {
Expand Down
1 change: 1 addition & 0 deletions components/Auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const performOAuth = async (setLoading: {
const { data, error } = await supabase.auth.signInWithOAuth({
provider: "google",
options: {
redirectTo: "https://new.echogame.xyz/redirect",
skipBrowserRedirect: true,
},
});
Expand Down

0 comments on commit adc8aca

Please sign in to comment.