README.md
# AssentPaseto
[![CircleCI](https://circleci.com/gh/Ianleeclark/assent_paseto/tree/master.svg?style=svg)](https://circleci.com/gh/Ianleeclark/assent_paseto/tree/master)
[![Hex.pm](https://img.shields.io/hexpm/v/assent_paseto.svg)](https://hex.pm/packages/assent_paseto)
A drop-in web token replacement for [assent](https://github.com/pow-auth/assent)
# What is Paseto?
Please see [here](https://github.com/Ianleeclark/Paseto) or [here](https://paseto.io/)
## Installation
```elixir
def deps do
[
{:assent_paseto, "~> 0.1.0"}
]
end
```
## Additional Dependencies
1. Erlang version >= 20.1
* This is required because this was the first Erlang version to introduce
crypto:sign/5.
2. libsodium >= 1.0.13
* This is required for cryptography used in Paseto.
* This can be found at https://github.com/jedisct1/libsodium
3. openssl >= 1.1
* This is needed for XChaCha-Poly1305 used for V2.Local Paseto
## Usage
Please first see [assent's documentation](https://github.com/pow-auth/assent) first.
Following the above, usage is as simple as:
```elixir
config = [
client_id: "REPLACE_WITH_CLIENT_ID",
client_secret: "REPLACE_WITH_CLIENT_SECRET",
jwt_adapter: AssentPaseto
]
```