79652024

Date: 2025-06-04 00:35:50
Score: 1.5
Natty:
Report link

For anyone else on this page looking for the answer, I found the answer as recommended by RickN in the comments :)

Replace: const keyBytes = Buffer.from(key, "base64");

With: const keyBytes = Buffer.from(key.trim(), "base64url");

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Dominic Andrews