I'm trying to implement Discord login in my FlutterFlow app using Supabase as backend. To do this, I created a Custom Action and inserted the following Flutter code:
Future<void> signInWithDiscord() async {
try {
await Supabase.instance.client.auth.signInWithOAuth(Provider.discord);
} catch (e) {
print('Erro ao fazer login com Discord: $e');
}
}
However, when trying to compile the Custom Action, I am getting the following errors:
Undefined name 'Supabase'. Try correcting the name to one that is defined, or defining the name.
(Line [indicate the line in your code])Undefined name 'Provider'. Try correcting the name to one that is defined, or defining the name.
(Line [indicate the line in your code])
I have already configured the Supabase backend in my FlutterFlow project with the correct project URL and anonymous key.