Skip to content

Commit d289552

Browse files
committed
fix typo.
1 parent 67cf9c4 commit d289552

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

back-end/lib/json_web_token.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ def token_secret
66
ENV["JWT_AUTH_SECRET"] || Rails.application.credentials.secret_key_base
77
end
88

9-
def encode(playod, exp = 1.hours.from_now)
10-
playod[:exp] = exp.to_i
11-
JWT.encode(playod, token_secret, ALGORITHM)
9+
def encode(paylod, exp = 1.hours.from_now)
10+
paylod[:exp] = exp.to_i
11+
JWT.encode(paylod, token_secret, ALGORITHM)
1212
end
1313

1414
def decode(token)

0 commit comments

Comments
 (0)