Skip to content

Commit

Permalink
Added code comments in federated-auth.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lachezartodorov authored Sep 26, 2024
1 parent ce23503 commit c51caf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/auth/federated-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ with the Facebook App ID and Secret set.
Future<UserCredential> signInWithFacebook() async {
// Trigger the sign-in flow
final rawNonce = _generateRandomString();
final nonce = sha256ofString(rawNonce);
final rawNonce = _generateRandomString(); // You should implement this function
final nonce = _sha256ofString(rawNonce); // You should implement this function
final LoginResult loginResult = await FacebookAuth.instance.login();
// Create a credential from the access token
Expand Down

0 comments on commit c51caf7

Please sign in to comment.