From 92994313506152f366d91f845aa1ff59e84b0acd Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Fri, 24 Mar 2023 20:32:13 -0600 Subject: Arregla generaciĆ³n de refresh token MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/api/refresh_tokens_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/controllers/api/refresh_tokens_controller.rb b/app/controllers/api/refresh_tokens_controller.rb index 1f78f4d..5ce447d 100644 --- a/app/controllers/api/refresh_tokens_controller.rb +++ b/app/controllers/api/refresh_tokens_controller.rb @@ -5,7 +5,7 @@ module Api class RefreshTokensController < AuthenticatedController def create @current_user_account.update_attribute(:session_key, SecureRandom.hex(16)) - @token = service.call(authentication_token[0]['exp']) + @token = service.call(decoded_token[0]['exp']) render json: @token, status: :ok end -- cgit v1.2.3