Skip to content

Commit

Permalink
online job
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Nov 9, 2024
1 parent ca7d4d0 commit 7f33251
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/models/auth/model/authorized_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7f33251

Please sign in to comment.