mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-08-16 03:14:09 +08:00
feat: use common function handleListQuery when query by page (#220)
This commit is contained in:
@@ -131,7 +131,7 @@ export default {
|
||||
const jwt = await Jwt.sign({
|
||||
address: name,
|
||||
address_id: address_id
|
||||
}, c.env.JWT_SECRET)
|
||||
}, c.env.JWT_SECRET, "HS256")
|
||||
return c.json({
|
||||
jwt: jwt
|
||||
})
|
||||
|
||||
@@ -136,7 +136,7 @@ export default {
|
||||
// 30 days expire in seconds
|
||||
exp: Math.floor(Date.now() / 1000) + 30 * 24 * 60 * 60,
|
||||
iat: Math.floor(Date.now() / 1000),
|
||||
}, c.env.JWT_SECRET)
|
||||
}, c.env.JWT_SECRET, "HS256")
|
||||
return c.json({
|
||||
jwt: jwt
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user