ueberauth / guardian

Elixir Authentication
MIT License
3.44k stars 381 forks source link

Custom TTL not working as documented #478

Closed zapient closed 6 years ago

zapient commented 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.

doomspork commented 6 years ago

@zapient a PR to correct the documentation is welcome 👍

zapient commented 6 years ago

Sure. Would you like the documentation to match the implementation or the other way around?

yordis commented 6 years ago

@zapient fix the documentation, he meant.