Class: RailsIam::Authentication::Logout

Inherits:
RailsIamService show all
Defined in:
app/services/rails_iam/authentication/logout.rb

Instance Method Summary collapse

Methods inherited from RailsIamService

call

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

#callObject



12
13
14
# File 'app/services/rails_iam/authentication/logout.rb', line 12

def call
  invalidate_refresh_token
end