JWT revoke token


#1

Hi !

I need to implement a logout method for JWT, the only way i read is :

await auth.check()
const user = await auth.getUser()
await user
.tokens()
.where('type', 'jwt_refresh_token')
.update({ is_revoked: 1 }) 

it works in database but the token is still active for next requests :confused:

Any idea ?

Thanks,

Sam