Skip to content

Commit

Permalink
fix: warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-hector committed Dec 27, 2024
1 parent 0b5de60 commit edf20ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class RecoverUserService {
},
'recovery': signedRecoveryPackage.toJson(),
},
temporaryAuthenticationToken: challenge.temporaryAuthenticationToken,
temporaryAuthenticationToken: challenge.temporaryAuthenticationToken!,
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class RegisterService {
final credentialData = await getCredentials(userRegistrationChallenge);
final registrationCompleteResponse = await dataSource.registerComplete(
credentialData: credentialData,
temporaryAuthenticationToken: userRegistrationChallenge.temporaryAuthenticationToken,
temporaryAuthenticationToken: userRegistrationChallenge.temporaryAuthenticationToken!,
);
await tokenStorage.setTokens(
username: username,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ class PasskeysSigner {
),
authSelectionType: AuthenticatorSelectionType(
authenticatorAttachment:
challenge.authenticatorSelection.authenticatorAttachment ?? 'platform',
requireResidentKey: challenge.authenticatorSelection.requireResidentKey,
residentKey: challenge.authenticatorSelection.residentKey,
userVerification: challenge.authenticatorSelection.userVerification,
challenge.authenticatorSelection?.authenticatorAttachment ?? 'platform',
requireResidentKey: challenge.authenticatorSelection?.requireResidentKey ?? false,
residentKey: challenge.authenticatorSelection?.residentKey ?? 'required',
userVerification: challenge.authenticatorSelection?.userVerification ?? 'required',
),
pubKeyCredParams: List<PubKeyCredParamType>.from(
challenge.pubKeyCredParams.map(
Expand Down

0 comments on commit edf20ce

Please sign in to comment.