We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d867411 commit 3980416Copy full SHA for 3980416
jwt.c
@@ -398,18 +398,14 @@ PHP_FUNCTION(jwt_encode)
398
smart_str_free(&json_header);
399
smart_str_free(&json_claims);
400
401
- printf("%s\n", "=========");
402
-
403
/* sign */
404
if (jwt->alg == JWT_ALG_NONE) {
405
// alg none.
406
smart_str_appendl(&segments, ".", 1);
407
- printf("%s\n", "++++++++++++");
408
} else {
409
/* set jwt struct */
410
jwt->key = key;
411
jwt->str = segments.s;
412
- printf("%s\n", "------------");
413
414
415
if (jwt_sign(jwt, &sig, &sig_len)) {
@@ -428,6 +424,8 @@ PHP_FUNCTION(jwt_encode)
428
424
429
425
smart_str_0(&segments);
430
426
427
+ printf("%s\n", "++++++++++++");
+
431
encode_done:
432
/* free */
433
if (sig)
0 commit comments