Fix apikey not URL safe (#2602)

This commit is contained in:
YISH
2024-06-14 18:35:25 +08:00
committed by GitHub
parent c34eb8ee15
commit 371e632a2c
3 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export const getAPIKeyPath = (): string => {
*/
export const generateAPIKey = (): string => {
const buffer = randomBytes(32)
return buffer.toString('base64')
return buffer.toString('base64url')
}
/**