Skip to content

Commit 0157f4c

Browse files
committed
Fail when in debug mode and add cut to prevent retries
1 parent 6d9b3f2 commit 0157f4c

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

prolog/jwt_io.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@
203203

204204
jwt_decode_from_string(Data, Payload, Key) :-
205205
member(Key.type, ['RSA', 'ECDSA']),
206+
!,
206207
jwt_decode_from_string(Data, Payload, Key.algorithm, Key.public_key),
207208
!.
208209

src/jwt_io.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ pl_jwt_decode(term_t in, term_t out_payload, term_t out_algorithm, term_t in_key
6262
jwt_free(jwt);
6363
PL_succeed;
6464
} else {
65-
PL_warning("cannot decode jwt: %s", strerror(jwt_result));
6665
PL_fail;
6766
}
6867
}

0 commit comments

Comments
 (0)