feat: support send mail from admin portal(no balance limit) (#524)

This commit is contained in:
Dream Hunter
2024-12-22 15:40:26 +08:00
committed by GitHub
parent 0b48baff6d
commit a9bb8785ba
9 changed files with 245 additions and 9 deletions

View File

@@ -165,8 +165,8 @@ export default {
const jwt = await Jwt.sign({
user_email: email,
user_id: user_id,
// 30 days expire in seconds
exp: Math.floor(Date.now() / 1000) + 30 * 24 * 60 * 60,
// 90 days expire in seconds
exp: Math.floor(Date.now() / 1000) + 90 * 24 * 60 * 60,
iat: Math.floor(Date.now() / 1000),
}, c.env.JWT_SECRET, "HS256")
return c.json({