Skip to content

Commit

Permalink
Update GenerateUrl.svelte (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
umireon authored Mar 17, 2024
1 parent f7f2e75 commit 1b9feb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/GenerateUrl.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
const query = new URLSearchParams({ token: token, uid: user.uid })
value = `${location.origin}${location.pathname}#${query}`
} else {
const buffer = new Uint8Array(256)
const buffer = new Uint8Array(32)
const newTokenArray = crypto.getRandomValues(buffer)
const newToken = uint8ArrayToHexString(newTokenArray)
await setUserData(db, user, { token: newToken })
Expand Down

0 comments on commit 1b9feb3

Please sign in to comment.