I'm trying to implement the LinkedIn sign-in for my App. All the prerequisites were set up, LinkedIn Oidc provider enabled in Supabase. As FlutterFlow doesn't have a built-in LinkedIn-supabase auth, I'm using the following custom code:
// Automatic FlutterFlow imports
import '/backend/supabase/supabase.dart';
import '/flutter_flow/flutter_flow_theme.dart';
import '/flutter_flow/flutter_flow_util.dart';
import '/custom_code/actions/index.dart'; // Imports other custom actions
import '/flutter_flow/custom_functions.dart'; // Imports custom functions
import 'package:flutter/material.dart';
// Begin custom action code
// DO NOT REMOVE OR MODIFY THE CODE ABOVE!
import 'package:supabase/supabase.dart';
Future<void> linkedinAuth() async {
try {
await SupaFlow.client.auth.signInWithOAuth(Provider.linkedin);
} catch (e) {
print('Exception: $e');
}
}
However, to use OIDC we need LinkedIn_oidc, but it seems that FlutterFlow doesn't support it. Does anyone have solution to this issue?