summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/api/refresh_tokens_controller.rb2
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