Class: Zaikio::JWTAuth::RevokeAccessTokenJob
- Inherits:
-
ApplicationJob
- Object
- ApplicationJob
- Zaikio::JWTAuth::RevokeAccessTokenJob
- Defined in:
- app/jobs/zaikio/jwt_auth/revoke_access_token_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(event) ⇒ Object
4 5 6 7 8 9 |
# File 'app/jobs/zaikio/jwt_auth/revoke_access_token_job.rb', line 4 def perform(event) DirectoryCache.update("api/v1/revoked_access_tokens.json", expires_after: 60.minutes) do |data| data["revoked_token_ids"] << event.payload["access_token_id"] data end end |