diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 75b1de5..8e8ccbc 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -9,7 +9,7 @@ def authenticate user_id = payload['user_id'] @user = User.find(user_id) rescue StandardError => e - render json: { message: "Error: #{e}", tok: decoded_token }, status: :forbidden + render json: { message: "Error: #{e}", tok: token }, status: :forbidden end else render json: { message: 'No Authorization header sent' }, status: :forbidden