@1auth/crypto
Advanced tools
Comparing version 0.0.0-alpha.17 to 0.0.0-alpha.18
@@ -49,3 +49,3 @@ import { promisify } from 'node:util' | ||
alphaNumeric: 62, // (26 + 10) * 2 | ||
base64: 64, // (26 + 10) * 2 + 2 | ||
base64: 64, // (26 * 2 + 10 + 2 | ||
hex: 16, | ||
@@ -100,3 +100,5 @@ numeric: 10 | ||
charPool: characterPoolSize.alphaNumeric, | ||
create: async () => randomAlphaNumeric(randomId.entropy) | ||
// TODO update to use https://github.com/jetpack-io/typeid | ||
create: async (prefix) => | ||
(prefix ? prefix + '_' : '') + randomAlphaNumeric(randomId.entropy) | ||
} | ||
@@ -108,3 +110,4 @@ | ||
charPool: characterPoolSize.alphaNumeric, | ||
create: async () => randomAlphaNumeric(subject.entropy) | ||
create: async (prefix) => | ||
(prefix ? prefix + '_' : '') + randomAlphaNumeric(subject.entropy) | ||
} | ||
@@ -117,3 +120,4 @@ | ||
expire: 15 * 60, | ||
create: async () => randomAlphaNumeric(session.entropy) | ||
create: async (prefix) => | ||
(prefix ? prefix + '_' : '') + randomAlphaNumeric(session.entropy) | ||
} | ||
@@ -120,0 +124,0 @@ |
12
index.js
@@ -49,3 +49,3 @@ import { promisify } from 'node:util' | ||
alphaNumeric: 62, // (26 + 10) * 2 | ||
base64: 64, // (26 + 10) * 2 + 2 | ||
base64: 64, // (26 * 2 + 10 + 2 | ||
hex: 16, | ||
@@ -100,3 +100,5 @@ numeric: 10 | ||
charPool: characterPoolSize.alphaNumeric, | ||
create: async () => randomAlphaNumeric(randomId.entropy) | ||
// TODO update to use https://github.com/jetpack-io/typeid | ||
create: async (prefix) => | ||
(prefix ? prefix + '_' : '') + randomAlphaNumeric(randomId.entropy) | ||
} | ||
@@ -108,3 +110,4 @@ | ||
charPool: characterPoolSize.alphaNumeric, | ||
create: async () => randomAlphaNumeric(subject.entropy) | ||
create: async (prefix) => | ||
(prefix ? prefix + '_' : '') + randomAlphaNumeric(subject.entropy) | ||
} | ||
@@ -117,3 +120,4 @@ | ||
expire: 15 * 60, | ||
create: async () => randomAlphaNumeric(session.entropy) | ||
create: async (prefix) => | ||
(prefix ? prefix + '_' : '') + randomAlphaNumeric(session.entropy) | ||
} | ||
@@ -120,0 +124,0 @@ |
{ | ||
"name": "@1auth/crypto", | ||
"version": "0.0.0-alpha.17", | ||
"version": "0.0.0-alpha.18", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "type": "module", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31114
782