Skip to content

Commit

Permalink
Revert README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joegoldman2 committed Oct 26, 2023
1 parent 366891f commit 8c5ee24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ var user = DemoStorage.GetOrAddUser(username, () => new User
});

// 2. Get user existing keys by username
var existingKeys = DemoStorage.GetCredentialsByUser(user).Select(c => c.Descriptor).ToList();
List<PublicKeyCredentialDescriptor> existingKeys = DemoStorage.GetCredentialsByUser(user).Select(c => c.Descriptor).ToList();

// 3. Create options
var options = _lib.RequestNewCredential(user, existingKeys, AuthenticatorSelection.Default, AttestationConveyancePreference.Parse(attType));
Expand Down Expand Up @@ -156,7 +156,7 @@ if (user == null) return NotFound("username was not registered");
var existingCredentials = DemoStorage.GetCredentialsByUser(user).Select(c => c.Descriptor).ToList();

// 3. Create options
var options = _lib.GetAssertionOptions(
List<PublicKeyCredentialDescriptor> options = _lib.GetAssertionOptions(
existingCredentials,
UserVerificationRequirement.Discouraged
);
Expand Down

0 comments on commit 8c5ee24

Please sign in to comment.