Skip to content

Commit

Permalink
fix: fixes RackController session lookup (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
skylarmacdonald authored Jan 29, 2024
1 parent 5d577ce commit 89395b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/authie/rack_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def cookies
def set_browser_id
until cookies[:browser_id]
proposed_browser_id = SecureRandom.uuid
unless Session.where(browser_id: proposed_browser_id).exists?
unless SessionModel.where(browser_id: proposed_browser_id).exists?
cookies[:browser_id] = { value: proposed_browser_id, expires: 20.years.from_now }
end
end
Expand Down

0 comments on commit 89395b4

Please sign in to comment.