From e1a240c563b0e10e0ceae7c167fdcde752f3d865 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Fri, 24 Feb 2023 23:25:26 -0600 Subject: AƱade autenticaciĆ³n MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/services/token_generation_service.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/controllers/services') diff --git a/app/controllers/services/token_generation_service.rb b/app/controllers/services/token_generation_service.rb index b1bc10a..94f9907 100644 --- a/app/controllers/services/token_generation_service.rb +++ b/app/controllers/services/token_generation_service.rb @@ -6,6 +6,7 @@ module Services def initialize(params) @email = params[:email] @role = params[:role] + @session_key = params[:session_key] end def call(expiration) @@ -15,7 +16,7 @@ module Services private def payload - { data: @email, aud: @role } + { data: @email, aud: @role, jti: @session_key } end end end -- cgit v1.2.3