I’m not entirely sure whats causing auth0 to return a failed state for our force password reset action. But it does not happen in rails 6, my belief is that its a cookie size issue that leads to a missing refresh token. This is a blocker for my team. Can you review the log details to assist me? I get an error that the code is missing on auth0 logs through the dashboard.
SPECS
Rails 7.1.3
Node 18.20.4
Ruby 3.2.4
GET", :path => "/", :status => 302, :view_runtime => 0.0, :db_runtime => 0.0, :allocations => 194, :status_message => "Found" }
2025-01-03 08:36:12.743537 I [403564:31620] Rack -- Started -- { :method => "GET", :path => "/auth/jwt_callback?error=access_denied&error_description=managementClient.createPasswordChangeTicket%20is%20not%20a%20function", :ip => "10.10.0.10" }
2025-01-03 08:36:12.762687 D [403564:31620] PrivyAuth0::AuthController -- Processing #jwt_callback
2025-01-03 08:36:13.097172 I [403564:31620] (334.4ms) PrivyAuth0::AuthController -- Completed #jwt_callback -- { :controller => "PrivyAuth0::AuthController", :action => "jwt_callback", :params => { "error" => "access_denied", "error_description" => "managementClient.createPasswordChangeTicket is not a function" }, :format => "HTML", :method => "GET", :path => "/auth/jwt_callback", :status => 500, :view_runtime => 0.0, :db_runtime => 0.0, :exception_object => #<NoMethodError: undefined method `refresh_token' for nil:NilClass>, :allocations => 1165, :status_message => "Internal Server Error" }
2025-01-03 08:36:13.097761 F [403564:31620 deprecators.rb:86] Rails -- Exception: NoMethodError: undefined method `refresh_token' for nil:NilClass
/var/www/privvy-app-rails/releases/privvy-app-rails_20250102160249/vendor/privvy_auth0-0.3.4.1.pre/app/helpers/privvy_auth0/user_helper.rb:6:in `set_user_cookies'
/var/www/privvy-app-rails/releases/privvy-app-rails_20250102160249/vendor/privvy_auth0-0.3.4.1.pre/app/controllers/privvy_auth0/auth_controller.rb:36:in `jwt_callback'
/var/www/privvy-app-rails/shared/vendor/bundle/ruby/3.2.0/gems/actionpack-7.1.3.3/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
/var/www/privvy-app-rails/shared/vendor/bundle/ruby/3.2.0/gems/actionpack-7.1.3.3/lib/abstract_controller/base.rb:224:in `process_action'
/var/www/privvy-app-rails/shared/vendor/bundle/ruby/3.2.0/gems/actionpack-7.1.3.3/lib/action_controller/metal/rendering.rb:165:in `process_action'
/var/www/privvy-app-rails/shared/vendor/bundle/ruby/3.2.0/gems/actionpack-7.1.3.3/lib/abstract_controller/callbacks.rb:259:in `block in process_action'
/var/www/privvy-app-rails/shared/vendor/bundle/ruby/3.2.0/gems/activesupport-7.1.3.3/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/var/www/privvy-app-rails/shared/vendor/bundle/ruby/3.2.0/gems/react-rails-3.1.1/lib/react/rails/controller_lifecycle.rb:33:in `use_react_component_helper'
/var/www/privvy-app-rails/shared/vendor/bundle/ruby/3.2.0/gems/activesupport-7.1.3.3/lib/active_support/callbacks.rb:130:in `block in run_callbacks'