Skip to content

Commit

Permalink
Fix some typos in configuration guide (#222)
Browse files Browse the repository at this point in the history
Fixes some typos in the configuration guide.
  • Loading branch information
HeroicEric authored and victorolinasc committed Mar 26, 2019
1 parent c708ed6 commit 3a0380c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This configuration map is referred to as `token_config`. Since creating it is cu
token_config = %{} |> Joken.Config.add_claim("iss", fn -> "My issuer" end, &(&1 == "My issuer"))
```

You need at least one of the functions (validate or generate). One example of leaving one of them emty is when you are only validating tokens. In this case you might leave generate functions empty.
You need at least one of the functions (validate or generate). One example of leaving one of them empty is when you are only validating tokens. In this case you might leave generate functions empty.

With your `token_config` created, you can pass it to functions like: `Joken.generate_claims/3` or `Joken.validate/4`.

Expand All @@ -43,7 +43,7 @@ This is an explicit signer creation. You can configure a signer in mix `config.e

## Module approach

In Joken 2.0 you can enpasulate all your token logic in a module with `Joken.Config`. You do that like this:
In Joken 2.0 you can encapsulate all your token logic in a module with `Joken.Config`. You do that like this:

``` elixir
defmodule MyAppToken do
Expand Down

0 comments on commit 3a0380c

Please sign in to comment.