mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 15:22:33 -05:00
add submitters api
This commit is contained in:
1 parent
63e1246a11
commit
7912c9a1ee
16 files changed
+177
-35
No files matched your search
@@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module JsonWebToken
|
||||
module_function
|
||||
|
||||
def encode(payload)
|
||||
JWT.encode(payload, Rails.application.secrets.secret_key_base)
|
||||
end
|
||||
|
||||
def decode(token)
|
||||
JWT.decode(token, Rails.application.secrets.secret_key_base)[0]
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user