Authentication Actions
Currently FlutterFlow supports the following Actions for Supabase Authentication:
Log in [Action]
This action provides users with multiple login options to access their accounts.
Follow the steps below to add Email Login action:
- Select the widget(e.g., Button) on which you want to add the action.
- Select Actions from the Properties Panel (the right menu) and click + Add Action.
- Search and select the Log in (under Backend/Database > Supabase Authentication) action.
- Set Auth Provider to Email.
- Set the Email Field dropdown to the widget name that accepts email (e.g., TextFieldEmail).
- Set the Password Field dropdown to the widget name that accepts a password (e.g., TextFieldPassword).
Create Account [Action]
By using this action, you can provide your users with the flexibility to create their accounts in different ways, according to their preferences.
As of now, we only support creating accounts with email and passwords.
Follow the steps below to add email signup action:
-
Select the widget(e.g., Button) on which you want to add the action.
-
Select Actions from the Properties Panel (the right menu), Open the Action Flow Editor, and click + Add Action.
-
Search and select the Create Account (under Backend/Database > Supabase Authentication) action.
-
Set Auth Provider to Email.
-
Set the Email Field dropdown to the widget name that accepts email (e.g., TextFieldEmail).
-
Set the Password Field dropdown to the widget name that accepts a password (e.g., TextFieldPassword).
-
Similarly, If you have a confirm password field in your UI, set the Confirm Password Field to the appropriate one.
Log out [Action]
This action enables users to securely log out of their account and clear their session data from the app, which ensures that their account remains safe and secure.
Follow the steps below to add this action:
-
Select the widget (e.g., Button) on which you want to add the action.
-
Select Actions from the Properties Panel (the right menu), If it's the first action, click + Add Action button. Otherwise, click the "+" button below the previous action tile (inside Action Flow Editor) and select Add Action.
-
Search and select the Log Out (under Backend/Database > Supabase Authentication) action.
Delete User
At present, we do not support deleting Supabase user action. However, you can refer to this community video for guidance on how to do so.