mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
rails v7.1.2 and ruby to v3.3.0
This commit is contained in:
1 parent
b94dbc75b7
commit
fe845bfa36
22 files changed
+226
-194
No files matched your search
@@ -4,10 +4,10 @@ module JsonWebToken
|
||||
module_function
|
||||
|
||||
def encode(payload)
|
||||
JWT.encode(payload, Rails.application.secrets.secret_key_base)
|
||||
JWT.encode(payload, Rails.application.credentials.secret_key_base)
|
||||
end
|
||||
|
||||
def decode(token)
|
||||
JWT.decode(token, Rails.application.secrets.secret_key_base)[0]
|
||||
JWT.decode(token, Rails.application.credentials.secret_key_base)[0]
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user