Skip to content

Commit

Permalink
removing unwanted code
Browse files Browse the repository at this point in the history
  • Loading branch information
thruthesky committed Jul 16, 2024
1 parent b89b932 commit 8befabf
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions lib/screens/mypage/MyPageScreen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -168,25 +168,6 @@ class MyPageScreen extends ConsumerWidget {
),
)),
),

ElevatedButton(
onPressed: () async {
// Trigger the sign-in flow
final LoginResult loginResult =
await FacebookAuth.instance.login();

// Create a credential from the access token
final OAuthCredential facebookAuthCredential =
FacebookAuthProvider.credential(
loginResult.accessToken!.token,
);

// Once signed in, return the UserCredential
FirebaseAuth.instance
.signInWithCredential(facebookAuthCredential);
},
child: const Text('Facebook Login'),
),
],
),
),
Expand Down

0 comments on commit 8befabf

Please sign in to comment.