Revoke access to devise-jwt on Denylist strategy

356 Views Asked by At

I am using devise-jwt gem, from what I see on the wrapped gem https://github.com/waiting-for-dev/warden-jwt_auth there is a static method revoke_jwt(payload, user) I want to write a script that will revoke access on a specific user, what will be the payload in this case?

1

There are 1 best solutions below

2
On

If you are using denylist you should add the jti value to the denylist table on revoke. Look at mine.