Skip to content

Commit

Permalink
Adding todo statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jtoliver-quoin committed Feb 6, 2025
1 parent de5ef2b commit 730cf37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/api/v2/tokens_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def respond_to_on_destroy
end

def create
# TODO: This may no longer be needed once we change to store session in the database will need to test
warden.logout(resource_name) if !current_user_match_params? && user_name_param.present?

if Rails.configuration.x.idp.use_identity_provider
Expand All @@ -42,6 +43,7 @@ def create_idp
end
end

# TODO: This will no longer be needed once we change to store session in the database
def destroy
session[:expires_at] = 30.minutes.ago
super
Expand Down

0 comments on commit 730cf37

Please sign in to comment.