Add JWT Bearer Authentication support and tutorial

This commit is contained in:
Sergio R. Caprile committed 2026-07-21 14:25:03 -03:00
1 parent af7eaaa9b1
commit cdd957572e
21 files changed
+888 -81

No files matched your search

+3
View File
@@ -22,6 +22,9 @@ void mg_free(void *ptr);
// sensitive data (keys, passwords).
void mg_bzero(volatile unsigned char *buf, size_t len);
// Fixed-length constant-time byte equality. Use for MACs, tags, signatures.
bool mg_memeq(const void *a, const void *b, size_t n);
// Fills buf with len cryptographically random bytes. Uses the best available
// hardware or OS source (hardware RNG, /dev/urandom, CryptGenRandom, etc.).
// Falls back to rand() with an error log if no strong source is available.