currentSupabaseConfigForProject function

FFSupabaseConfig currentSupabaseConfigForProject(
  1. FFProject project, {
  2. required String currentEnvironmentKey,
})

Implementation

FFSupabaseConfig currentSupabaseConfigForProject(
  FFProject project, {
  required String currentEnvironmentKey,
}) {
  final mode = supabaseConnectionModeForProject(project);
  return mode == FFBackend_SupabaseConnection.supabaseOauthConfig
      ? currentSupabaseOAuthConfigForProject(
          project,
          currentEnvironmentKey: currentEnvironmentKey,
          defaultEnvironmentKey: 'PROD',
        )
      : project.backend.supabaseSelfHostedConfig;
}