From 3a0380ca399f2be48194d61806d048d5cf840501 Mon Sep 17 00:00:00 2001 From: Eric Kelly Date: Tue, 26 Mar 2019 11:34:07 -0700 Subject: [PATCH] Fix some typos in configuration guide (#222) Fixes some typos in the configuration guide. --- guides/configuration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guides/configuration.md b/guides/configuration.md index 2f74f88..eceff7e 100644 --- a/guides/configuration.md +++ b/guides/configuration.md @@ -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`. @@ -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