David Bean PRO said about 2 months ago on Authentication Timeout :
fyi, I have a solution to having to set the Devise timeout both in the Devise config file and the stimulus controller...I just passed it into the controller as a value:

timeout_check_devise_timeout_value: Devise.timeout_in.seconds.to_i

The whole thing works great -- thanks again!