tangled
alpha
login
or
join now
stream.place
/
streamplace
77
fork
atom
Live video on the AT Protocol
77
fork
atom
overview
issues
1
pulls
pipelines
Restrict returnRoute handling to web
Natalie B.
1 month ago
78ce316a
cf61dbb0
+5
-1
2 changed files
expand all
collapse all
unified
split
js
app
components
login
login.tsx
features
bluesky
blueskyProvider.tsx
+1
js/app/components/login/login.tsx
···
27
27
28
28
// check for stored return route on mount
29
29
useEffect(() => {
30
30
+
if (Platform.OS !== "web") return;
30
31
storage.getItem("returnRoute").then((stored) => {
31
32
if (stored) {
32
33
try {
+4
-1
js/app/features/bluesky/blueskyProvider.tsx
···
2
2
import { storage } from "@streamplace/components";
3
3
import { useURL } from "expo-linking";
4
4
import { useEffect, useState } from "react";
5
5
+
import { Platform } from "react-native";
5
6
import { useStore } from "store";
6
7
import { useIsReady, useOAuthSession, useUserProfile } from "store/hooks";
7
8
import { navigateToRoute } from "utils/navigation";
···
23
24
loadOAuthClient();
24
25
25
26
// load return route from storage on mount
27
27
+
if (Platform.OS !== "web") return;
26
28
storage.getItem("returnRoute").then((stored) => {
27
29
if (stored) {
28
30
try {
···
82
84
if (
83
85
lastAuthStatus !== "loggedIn" &&
84
86
authStatus === "loggedIn" &&
85
85
-
returnRoute
87
87
+
returnRoute &&
88
88
+
Platform.OS === "web"
86
89
) {
87
90
console.log(
88
91
"Login successful, navigating back to returnRoute:",