add return type
This commit is contained in:
committed by
Jackson Harper
parent
7a11d90d2c
commit
4e11000ac0
@ -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
|
||||
|
||||
Reference in New Issue
Block a user