1
This commit is contained in:
@@ -11,7 +11,7 @@ function hashPlainToken(plain) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function generatePlainToken() {
|
function generatePlainToken() {
|
||||||
return `waw_${crypto.randomBytes(24).toString("hex")}`;
|
return `sk-${crypto.randomBytes(24).toString("hex")}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 默认 Token 过期时间:一年后当日 23:59:59 */
|
/** 默认 Token 过期时间:一年后当日 23:59:59 */
|
||||||
|
|||||||
Reference in New Issue
Block a user