For encoding to/from base64urls implementing RFC 4648 base64url standard
89
{
"context": "Evaluates whether the solution relies on the base64url package to transform base64url tokens into padded base64 strings, including collection handling and invalid-token detection. Checks focus solely on correct use of the package API for conversions rather than reimplementing padding or alphabet swaps.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Package import",
"description": "Imports the base64url package and uses its provided API instead of custom conversion helpers.",
"max_score": 15
},
{
"name": "toBase64 conversion",
"description": "Converts individual tokens by calling base64url.toBase64 (or the equivalent method on the default export) so the library handles alphabet mapping and padding, with no manual string replacement.",
"max_score": 45
},
{
"name": "Batch reuse",
"description": "Normalizes collections by routing every token through base64url.toBase64 (after any required trimming) rather than duplicating padding or character replacement logic.",
"max_score": 25
},
{
"name": "Error surfacing",
"description": "Invalid-token detection relies on base64url conversion/decoding behavior (e.g., letting toBase64 or decode throw) and reports errors that include the offending token value.",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-base64url