You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ff-concepts/advanced/custom-login-routing.md
+18-13Lines changed: 18 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,8 +31,9 @@ This article explains how to configure custom routing logic for users after they
31
31
The **Persist** setting retains the value locally on the device until the app is uninstalled. It will reset on every refresh when testing in a web browser.
32
32
:::
33
33
34
-

35
-

34
+

35
+
36
+

36
37
37
38
**Add a User Field for Admin Check**
38
39
@@ -41,8 +42,9 @@ This article explains how to configure custom routing logic for users after they
41
42
42
43
This allows conditional routing based on the admin role.
43
44
44
-

45
-

45
+

46
+
47
+

46
48
47
49
**Configure Initial Pages**
48
50
@@ -56,7 +58,7 @@ This article explains how to configure custom routing logic for users after they
56
58
**Logged In Page** is used when a user is already authenticated.
57
59
:::
58
60
59
-

61
+

60
62
61
63
**Define Actions on the Checkup Page**
62
64
@@ -69,9 +71,11 @@ This article explains how to configure custom routing logic for users after they
@@ -94,7 +98,7 @@ This article explains how to configure custom routing logic for users after they
94
98
- If `FALSE`:
95
99
- Navigate to `UserHomePage`, disable back navigation, then **Terminate**.
96
100
97
-

101
+

98
102
99
103
**Update `firstTime` After Onboarding**
100
104
@@ -105,14 +109,15 @@ This article explains how to configure custom routing logic for users after they
105
109
3. Add action: **Update Local State** > `firstTime` → set value → `False`.
106
110
4. Add navigation: **Navigate To** `CheckupPage`, disable back navigation.
107
111
108
-

109
-

112
+

113
+
114
+

110
115
111
116
:::tip
112
117
You can reuse the `CheckupPage` to add more advanced routing conditions, such as checking if the user has completed their profile or enabled certain settings.
113
118
:::
114
119
115
120
To skip onboarding for admins as well, extend your logic by nesting onboarding logic inside the admin check condition.
0 commit comments