Closed mdrashedbinkuddus closed 4 months ago
Hi @mdrashedbinkuddus! This tracker is only used for bugs, so I am closing this issue. I've added this as a feature request in our internal backlog and we will get to it as soon as possible. Thanks for your feedback!
I am also facing the same issue. Any updates on this? Still we can't use the "OAuthProvider.linkedinOidc".
Has your issue been reported?
Current Behavior
I am trying to add supabase linkedin login. but for that I need to update "gotrue" package. In that package there is a enum called "Provider" which is now "OAuthProvider" and for likedin OAuth they need to set it to "OAuthProvider.linkedinOidc". So previous code is
await SupaFlow.client.auth.signInWithOAuth(Provider.linkedin);
To solve that issue I need to update 5 package
But when I do that I get error in table.dart file
Expected Behavior
New code should be
await SupaFlow.client.auth.signInWithOAuth(OAuthProvider.linkedinOidc);
Steps to Reproduce
gotrue
latest versionimport '/backend/supabase/supabase.dart'; import 'package:flutter/material.dart'; import 'dart:async'; import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; // Import widgets to access Uri.base
Future linkedInLogin(BuildContext context) async { // Add your function code here! Uri currentUri = Uri.base; String redirectUrl = '${currentUri.scheme}://${currentUri.host}:${currentUri.port}/';
if (kIsWeb) { await SupaFlow.client.auth.signInWithOAuth(Provider.linkedin, redirectTo: redirectUrl); }
final completer = Completer<User?>();
SupaFlow.client.auth.onAuthStateChange.listen((data) { final AuthChangeEvent event = data.event; if (event == AuthChangeEvent.signedIn) { completer.complete(SupaFlow.client.auth.currentUser); } });
await Future.delayed(const Duration(seconds: 10)); if (!completer.isCompleted) { completer.complete(null); // In case it times out, return null. }
return completer.future; }
General
Relative to the time the changes were made, data was lost within
When following my steps to reproduce, data loss happens