Closed zapient closed 6 years ago
# Customize the time to live (ttl) of the token {:ok, token, claims} = MyApp.Guardian.encode_and_sign(resource, %{}, token_ttl: {1, :minute})
Looks like the documentation does not match the implementation. Using ttl instead of token_ttl works as expected.
ttl
token_ttl
@zapient a PR to correct the documentation is welcome 👍
Sure. Would you like the documentation to match the implementation or the other way around?
@zapient fix the documentation, he meant.
Looks like the documentation does not match the implementation. Using
ttl
instead oftoken_ttl
works as expected.