feat: use common function handleListQuery when query by page (#220)

This commit is contained in:
Dream Hunter
2024-05-09 23:31:13 +08:00
committed by GitHub
parent fc6b0246b1
commit 58c3fdb5b4
11 changed files with 220 additions and 320 deletions

View File

@@ -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
})

View File

@@ -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
})