Skip to content

Commit

Permalink
add auth key
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sidhdhi-p committed Jan 15, 2025
1 parent 0eb8f92 commit 5dadbf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/lib/service/auth/auth_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ import '../../errors/app_error.dart';
import '../../extensions/string_extensions.dart';
import '../../storage/app_preferences.dart';
import '../../storage/provider/preferences_provider.dart';
import '../../utils/api_keys.dart';
import '../user/user_service.dart';
import 'auth_endpoints.dart';

final firebaseAuthProvider = Provider((ref) => FirebaseAuth.instance);
final googleSignInProvider = Provider(
(ref) => GoogleSignIn(
clientId: '753506519474-6qolf71653023s197ur4ag97q2lvaf9r.apps.googleusercontent.com',
serverClientId: '753506519474-lt8hqsa2quvfel3oilfll5pemd5qba7p.apps.googleusercontent.com',
clientId: ApiKeys.clientId,
serverClientId: ApiKeys.serverClientId,
scopes: [
'https://www.googleapis.com/auth/youtube.force-ssl',
'https://www.googleapis.com/auth/youtube.readonly',
Expand Down Expand Up @@ -139,7 +140,6 @@ class AuthService {
user.providerData.any((info) => info.providerId == 'google.com');
final googleUser = await _googleSignIn.isSignedIn();


return isGoogleLinked && googleUser;
}
return false;
Expand Down

0 comments on commit 5dadbf5

Please sign in to comment.