mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-09 15:57:26 +02:00
use crypto if available
This commit is contained in:
1 parent
2863763a27
commit
6ca1f5c431
2 files changed
+4
-2
No files matched your search
@@ -21,7 +21,9 @@
|
||||
if (secret) {
|
||||
secret = undefined;
|
||||
} else {
|
||||
secret = CommonHelper.randomString(50);
|
||||
secret = crypto?.randomUUID
|
||||
? crypto.randomUUID() + CommonHelper.randomString(14)
|
||||
: CommonHelper.randomString(50);
|
||||
}
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user