Skip to content

Commit

Permalink
Merge pull request #4 from unenglishable/readme
Browse files Browse the repository at this point in the history
update README, add supervision tree info
  • Loading branch information
alexfilatov authored Mar 16, 2023
2 parents 4db9df7 + 692c4cc commit c61776b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,24 @@ config :guardian, Guardian.DB,
repo: GuardianRedis.Repo # Add this Redis repository module
```

Add GuardianRedis.Redix to your supervision tree:

(Note: If this is not configured you will get a `no process` error when storing or revoking tokens!)

```elixir
defmodule MyApp.Application do

# ...

defp my_app_otp_apps() do
children = [
MyApp.Repo,
GuardianRedis.Redix
]
end
end
```

Apart from this please set up Redis configuration:

```elixir
Expand Down

0 comments on commit c61776b

Please sign in to comment.