Cannot set up the LinkedIn oidc connector with Supabase

Database & APIs

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?

What have you tried so far?

If I'm running the app with Provider.linkedin, it returns this error:

{"code":400,"error_code":"validation_failed","msg":"Unsupported provider: provider is not enabled"}
Did you check FlutterFlow's Documentation for this topic?
Yes
5
3 replies