Skip to content

Commit 39a3b92

Browse files
committed
Fixed line spacing
1 parent b9235ce commit 39a3b92

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/jwtverify.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,15 @@ local function hs256SignatureIsValid(token, secret)
124124
end
125125

126126
local function expirationIsValid(token)
127-
return os.difftime(token.payloaddecoded.exp, core.now().sec) > 0
127+
return os.difftime(token.payloaddecoded.exp, core.now().sec) > 0
128128
end
129129

130130
local function issuerIsValid(token, expectedIssuer)
131-
return token.payloaddecoded.iss == expectedIssuer
131+
return token.payloaddecoded.iss == expectedIssuer
132132
end
133133

134134
local function audienceIsValid(token, expectedAudience)
135-
return token.payloaddecoded.aud == expectedAudience
135+
return token.payloaddecoded.aud == expectedAudience
136136
end
137137

138138
function jwtverify(txn)
@@ -149,7 +149,7 @@ function jwtverify(txn)
149149
goto out
150150
end
151151

152-
-- 2. Verify the signature algorithm is supported (RS256)
152+
-- 2. Verify the signature algorithm is supported (HS256, RS256)
153153
if algorithmIsValid(token) == false then
154154
log("Algorithm not valid.")
155155
goto out

0 commit comments

Comments
 (0)