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: src/routes/integrations/flutterflow-auth-kit/+page.markdoc
+91-96Lines changed: 91 additions & 96 deletions
Original file line number
Diff line number
Diff line change
@@ -31,11 +31,11 @@ As you start creating your FlutterFlow app, you might want to add user accounts
31
31
32
32
By the end of this guide, you’ll have a fully functional authentication system with:
33
33
34
-
- Email/password sign-up and login
35
-
- Secure session management
36
-
- User profile handling
37
-
- Error handling with user feedback
38
-
- Protected routes for authenticated users
34
+
- Email/password sign-up and login.
35
+
- Secure session management.
36
+
- User profile handling.
37
+
- Error handling with user feedback.
38
+
- Protected routes for authenticated users.
39
39
40
40
Want to see the final result first? Check out our [Appwrite Flutterflow Demo App](https://app.flutterflow.io/project/appwrite-auth-yxmd9b) to experience all these features in action! Then follow along to build your own custom version.
41
41
@@ -44,164 +44,159 @@ Want to see the final result first? Check out our [Appwrite Flutterflow Demo App
2. Drop an `initialize` action in your startup flow
167
-
3. Add a condition to check `initializeResult.success`
168
-
4. On success: Navigate to success page
169
-
5. On failure: Show `initializeResult.formattedError`
170
171
171
172
### Example: Sign Up flow
172
173
173
-
1. Use the `signUpWithEmailAndPassword` action
174
-
2. Check `signUpResult.success`
175
-
3. Success? → Dashboard
176
-
4. Failure? → Show `signUpResult.formattedError`
174
+
1. Use the `signUpWithEmailAndPassword` action.
175
+
2. Check `signUpResult.success`.
176
+
3. Success? → Dashboard.
177
+
4. Failure? → Show `signUpResult.formattedError`.
177
178
178
-
You can implement similar flow patterns for other authentication actions (`signInWithEmail`, `signOut`, `getCurrentUser`), following the similar structure of checking results and handling success/failure scenarios appropriately.
179
+
You can use `response.error` for internal logging and `response.formattedError` to display user-friendly messages. Similarly, you can implement flow patterns for other authentication actions (`signInWithEmail`, `signOut`, `getCurrentUser`), following the similar structure of checking results and handling success/failure scenarios appropriately.
179
180
181
+
## See it in action
180
182
181
-
## See it in action:
183
+
Check out our [Appwrite FlutterFlow Demo App](https://app.flutterflow.io/project/appwrite-auth-yxmd9b) to explore the complete auth flow in action - from sign-up to session management.
182
184
183
-
Want to see how it all comes together? Check out our [Appwrite Flutterflow Demo App](https://app.flutterflow.io/project/appwrite-auth-yxmd9b) where you can check all custom actions in use:
- Check if library is properly added in Project Dependencies.
196
191
197
192
2. **Authentication Failures**
198
-
- Confirm `initialize` action is called first
199
-
- Verify endpoint and projectId values
200
-
- Check Appwrite console for platform settings
193
+
- Confirm `initialize` action is called first.
194
+
- Verify endpoint and projectId values.
195
+
- Check Appwrite console for platform settings.
201
196
202
197
3. **Session Management Issues**
203
-
- Ensure app states are properly configured
204
-
- Verify persistence settings
198
+
- Ensure app states are properly configured.
199
+
- Verify persistence settings.
205
200
206
201
This completes our guide on setting up Appwrite authentication in your FlutterFlow app. You now have a solid foundation for managing user accounts and secure sessions.
207
202
@@ -213,4 +208,4 @@ If you would like to learn more about Appwrite and FlutterFlow, we have some res
0 commit comments