Class: RailsIam::Authentication::Logout
- Inherits:
-
RailsIamService
- Object
- ApplicationService
- RailsIamService
- RailsIam::Authentication::Logout
- Defined in:
- app/services/rails_iam/authentication/logout.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(refresh_token: nil) ⇒ Logout
constructor
A new instance of Logout.
Methods inherited from RailsIamService
Methods included from ConfigLoader
#authentication_strategies, #authorization_rule_error, #cookie_options, #jwt_algorithm, #jwt_audience, #jwt_expiry, #jwt_issuer, #jwt_secret_key, #refresh_token_transport, #session_strategy, #user_class
Constructor Details
#initialize(refresh_token: nil) ⇒ Logout
Returns a new instance of Logout.
6 7 8 9 10 |
# File 'app/services/rails_iam/authentication/logout.rb', line 6 def initialize(refresh_token: nil) super() @refresh_token = refresh_token end |
Instance Method Details
#call ⇒ Object
12 13 14 |
# File 'app/services/rails_iam/authentication/logout.rb', line 12 def call invalidate_refresh_token end |