mirror of
https://github.com/team-alembic/ash_authentication.git
synced 2024-09-19 12:52:55 +12:00
docs: Update getting-started-with-authentication.md (#455)
add postgres extension
This commit is contained in:
parent
d21734bdcb
commit
b986e3c10e
1 changed files with 14 additions and 0 deletions
|
@ -119,6 +119,20 @@ if token generation is enabled for any resources in your application. Most of
|
|||
the contents are auto-generated, so we just need to provide the data layer
|
||||
configuration and the API to use.
|
||||
|
||||
But before we do, we need to install a postgres extension.
|
||||
|
||||
```elixir
|
||||
# lib/my_app/repo.ex
|
||||
|
||||
defmodule MyApp.Repo do
|
||||
use AshPostgres.Repo, otp_app: :my_app
|
||||
|
||||
def installed_extensions do
|
||||
["uuid-ossp", "citext"]
|
||||
end
|
||||
end
|
||||
```
|
||||
|
||||
You can skip this step if you don't want to use tokens, in which case remove the
|
||||
`tokens` DSL section in the user resource below.
|
||||
|
||||
|
|
Loading…
Reference in a new issue