Doorkeeper token revoke callback

135 views Asked by At

I'd like to invoke some code that requires the request object and the user when a token is revoked. It appears that Doorkeeper does not have the configuration to hook into the token revocation process. Perhaps, there's a better way to achieve this.

Thank You!

1

There are 1 answers

0
Logan Keenan On BEST ANSWER

I ended up figuring this out. The code below will remove all the tokens for a particular resource owner.

Doorkeeper::AccessToken.where(resource_owner_id: "some-id").delete_all