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?
Asked
Active
Viewed 233 times
1

Petros Kalafatidis
- 575
- 5
- 15
1 Answers
-1
If you are using denylist you should add the jti value to the denylist table on revoke. Look at mine.

Solomon Boloshe
- 1
- 1
-
Why on earth would you post a picture of your code?!? Please paste the actual code. I can't believe a moderator didn't step in. – Dan Aug 02 '22 at 23:01
-
Sorry mate, i was in active – Solomon Boloshe May 05 '23 at 17:07