From 9c0cf718b2109eb15564ac259fb1fbbbb0c07564 Mon Sep 17 00:00:00 2001 From: Vishnu Narayanan Date: Wed, 26 Mar 2025 20:48:15 +0530 Subject: [PATCH] feat: limit active sessions per user to 3 --- config/initializers/devise_token_auth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/devise_token_auth.rb b/config/initializers/devise_token_auth.rb index e8500019b..1d5f47689 100644 --- a/config/initializers/devise_token_auth.rb +++ b/config/initializers/devise_token_auth.rb @@ -15,7 +15,7 @@ DeviseTokenAuth.setup do |config| # Sets the max number of concurrent devices per user, which is 10 by default. # After this limit is reached, the oldest tokens will be removed. - config.max_number_of_devices = 25 + config.max_number_of_devices = 3 # Sometimes it's necessary to make several requests to the API at the same # time. In this case, each request in the batch will need to share the same