'Revoke access to devise-jwt on Denylist strategy

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?



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Solomon Boloshe