migrate unlock page to composition API and typescript

This commit is contained in:
MaysWind
2025-01-14 23:36:31 +08:00
parent cd2e6c1aae
commit 29c09cb10a
7 changed files with 387 additions and 396 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ interface WebAuthnRegisterResponse {
}
interface WebAuthnVerifyResponse {
readonly id: string | null;
readonly id: string;
readonly userName: string;
readonly userSecret: string;
readonly clientData: ClientData;
@@ -198,7 +198,7 @@ export function verifyWebAuthnCredential(userInfo: UserBasicInfo, credentialId:
clientData && clientData.type === 'webauthn.get' && challengeFromClientData === challenge &&
userIdParts && userIdParts.length === 2 && userIdParts[0] === userInfo.username) {
const ret: WebAuthnVerifyResponse = {
id: base64encode(rawCredential.rawId),
id: base64encode(rawCredential.rawId) as string,
userName: userIdParts[0],
userSecret: userIdParts[1],
clientData: clientData,