Skip to content

Commit

Permalink
remove unused key naming
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrisch committed Jan 7, 2025
1 parent 623bdeb commit 867482b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions utils/passkeys/createPasskey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@ export async function onPasskeyCreate(passkeyName: string) {
}

const createUserPasskey = async (passkeyName: string) => {
const now = new Date();
const humanReadableDateTime = `${now.getFullYear()}-${now.getMonth()}-${now.getDay()}@${now.getHours()}h${now.getMinutes()}min`;
console.log(
"creating passkey with the following datetime: ",
humanReadableDateTime
);

// ID isn't visible by users, but needs to be random enough and valid base64 (for Android)
const userId = Buffer.from(String(Date.now())).toString("base64");
const authenticatorParams = await createPasskey({
Expand Down

0 comments on commit 867482b

Please sign in to comment.