Skip to content

Commit

Permalink
feat(auth): change JWT expiration to 4 months
Browse files Browse the repository at this point in the history
  • Loading branch information
adekbadek committed Nov 16, 2017
1 parent 17d1534 commit 2044cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/json_web_token.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class JsonWebToken
class << self
def encode(payload, exp = 24.hours.from_now)
def encode(payload, exp = 4.months.from_now)
payload[:exp] = exp.to_i
JWT.encode(payload, Rails.application.secrets.secret_key_base)
end
Expand Down

0 comments on commit 2044cbf

Please sign in to comment.