You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jwtVerify: (token:string, secret:string) =>jwt.verify(token, secret) as CrystallizeSignature,
492
+
});
493
+
494
+
guard(signatureJwt, {
495
+
url:request.url, // full URL here, including https:// etc. request.href in some framework
496
+
method:'POST',
497
+
body:'THE RAW JSON BODY', // the library parse it for you cf. doc
498
+
});
499
+
```
500
+
501
+
If the signature is not valid:
502
+
503
+
- JWT signature is not verified
504
+
- HMAC is invalid (man in the middle)
505
+
506
+
The guard function will trigger an exception.
507
+
508
+
> We let you provide the `sha256` and `jwtVerify` methods to stay agnostic of any library.
509
+
476
510
## Mass Call Client
477
511
478
512
Sometimes, when you have many calls to do, whether they are queries or mutations, you want to be able to manage them asynchronously. This is the purpose of the Mass Call Client. It will let you be asynchronous, managing the heavy lifting of lifecycle, retry, incremental increase or decrease of the pace, etc.
0 commit comments