diff options
author | HombreLaser <sebastian-440@live.com> | 2023-03-24 20:32:13 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-03-24 20:32:13 -0600 |
commit | 92994313506152f366d91f845aa1ff59e84b0acd (patch) | |
tree | b35c8092f96147dd5b10e291445f2c2dca131d15 /app | |
parent | 243147833acff0e7d6e49b86de81e36837a176ea (diff) |
Arregla generaciĆ³n de refresh token
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/api/refresh_tokens_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |