Skip to content

Commit 662113a

Browse files
committed
♻️ Use more reliable unique id generation strategy (#2446)
1 parent d7ded08 commit 662113a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/utils/authorship.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const formValidationStrategies = [
157157
* Contains constraints and shape definitions used across different form strategies
158158
*/
159159
const createBaseAuthForm = () => ({
160-
id: 'error-fallback-form-' + Date.now(), // Note: Use only client-side validation
160+
id: 'error-fallback-form-' + crypto.randomUUID(), // Note: Use only client-side validation
161161
data: { username: '', password: '' },
162162
constraints: {
163163
username: { minlength: 3, maxlength: 24, required: true, pattern: '[\\w]*' },

0 commit comments

Comments
 (0)