maxgalbu / adonis5-jwt

JWT Authentication service for Adonisjs v5
MIT License
86 stars 15 forks source link

How to set jti and custom properties #6

Open lehuuthien2 opened 2 years ago

lehuuthien2 commented 2 years ago

I try to set jti like this but it not working

auth.use("jwt").generate(user, {
  payload: {
      name: user.name,
      email: user.email,

  },
  jti: hash,
  token_type: "access"
})
maxgalbu commented 2 years ago

JTI are not supported right now, but pull requests are welcome 😄