From 7f3325101b04ca02aa72c16c9623fd70c59814ac Mon Sep 17 00:00:00 2001 From: qinmingyuan Date: Sat, 9 Nov 2024 15:28:50 +0800 Subject: [PATCH] online job --- app/models/auth/model/authorized_token.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/models/auth/model/authorized_token.rb b/app/models/auth/model/authorized_token.rb index 15900a90..4b62433b 100644 --- a/app/models/auth/model/authorized_token.rb +++ b/app/models/auth/model/authorized_token.rb @@ -98,7 +98,12 @@ def generate_jwt_token uid: uid } - crypt = ActiveSupport::MessageEncryptor.new(auth_app.appid, cipher: 'aes-256-gcm', serializer: :json, urlsafe: true) + crypt = ActiveSupport::MessageEncryptor.new( + auth_app.appid, + cipher: 'aes-256-gcm', + serializer: :json, + urlsafe: true + ) crypt.encrypt_and_sign(payload) end