Skip to content

Commit

Permalink
Merge pull request #14 from dwyl/jwt-epxiration-time-13
Browse files Browse the repository at this point in the history
Increase jwt expiration time
  • Loading branch information
nelsonic authored Mar 24, 2020
2 parents 48c5450 + 0d56f54 commit b563e00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/auth_mvp/token.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ defmodule AuthMvp.Token do
see https://hexdocs.pm/joken/configuration.html#module-approach
"""
use Joken.Config

@impl true
def token_config do
default_claims(exp: 31_537_000 ) # ~ 1 year in seconds
end

end

0 comments on commit b563e00

Please sign in to comment.