add return type

This commit is contained in:
Hongbo Wu
2022-07-21 13:17:09 +08:00
committed by Jackson Harper
parent 7a11d90d2c
commit 4e11000ac0

View File

@ -80,7 +80,7 @@ export const getClaimsByToken = async (
return claims
}
export const generateVerificationToken = (userId: string) => {
export const generateVerificationToken = (userId: string): string => {
const iat = Math.floor(Date.now() / 1000)
const exp = Math.floor(
new Date(Date.now() + 1000 * 60 * 60 * 24).getTime() / 1000