aboutsummaryrefslogtreecommitdiffstats
path: root/util/paseto.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/paseto.lua')
-rw-r--r--util/paseto.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/paseto.lua b/util/paseto.lua
index 5f162ad0..352c9df0 100644
--- a/util/paseto.lua
+++ b/util/paseto.lua
@@ -69,6 +69,7 @@ function v4_public.verify(tok, pk, expected_f, i)
if not h then
return nil, "invalid-token-format";
end
+ f = f and unb64url(f) or nil;
if expected_f then
if not f or not secure_equals(expected_f, f) then
return nil, "invalid-footer";