AssentPaseto
A drop-in web token replacement for assent
What is Paseto?
Installation
def deps do
[
{:assent_paseto, "~> 0.1.0"}
]
endAdditional Dependencies
-
Erlang version >= 20.1
- This is required because this was the first Erlang version to introduce crypto:sign/5.
-
libsodium >= 1.0.13
- This is required for cryptography used in Paseto.
- This can be found at https://github.com/jedisct1/libsodium
-
openssl >= 1.1
- This is needed for XChaCha-Poly1305 used for V2.Local Paseto
Usage
Please first see assent's documentation first.
Following the above, usage is as simple as:
config = [
client_id: "REPLACE_WITH_CLIENT_ID",
client_secret: "REPLACE_WITH_CLIENT_SECRET",
jwt_adapter: AssentPaseto
]