docs: you have to explicitly turn on token generation.

This commit is contained in:
James Harton 2024-05-14 15:04:45 +12:00
parent 8d584030f6
commit b9a81770f3
Signed by: james
GPG key ID: 90E82DAA13F624F4

View file

@ -186,6 +186,7 @@ defmodule MyApp.Accounts.User do
end end
tokens do tokens do
enabled? true
token_resource MyApp.Accounts.Token token_resource MyApp.Accounts.Token
signing_secret fn _, _ -> signing_secret fn _, _ ->
Application.fetch_env(:my_app, :token_signing_secret) Application.fetch_env(:my_app, :token_signing_secret)