Skip to content

Commit c9750d8

Browse files
committed
format toJSON() method
1 parent cdb7e5d commit c9750d8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/auth/user-record.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -399,12 +399,12 @@ export class PasskeyInfo {
399399
* @returns A JSON-serializable representation of this passkey info object.
400400
*/
401401
public toJSON(): object {
402-
const json: any = {
403-
name: this.name,
404-
credentialId: this.credentialId,
405-
displayName: this.displayName,
406-
}
407-
return json;
402+
return {
403+
name: this.name,
404+
credentialId: this.credentialId,
405+
displayName: this.displayName,
406+
};
407+
}
408408
}
409409

410410
}

0 commit comments

Comments
 (0)