For encoding to/from base64urls implementing RFC 4648 base64url standard
89
{
"context": "Evaluates how effectively the solution leverages the base64url package to decode URL-safe payloads into text. Focuses on selecting the right decode API, passing encoding options, and surfacing errors from malformed tokens as described in the spec.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Decode via package",
"description": "Base64url strings are converted to text using the base64url.decode(...) API or the callable default export rather than manual Buffer/base64 logic.",
"max_score": 30
},
{
"name": "Encoding option",
"description": "The implementation passes the encoding argument supported by base64url.decode(base64url, encoding?) to return non-UTF-8 text (e.g., latin1) instead of re-encoding manually.",
"max_score": 25
},
{
"name": "URL alphabet handling",
"description": "Decoding relies on base64url's built-in handling of URL-safe characters and padding (e.g., using decode or toBuffer) rather than custom character substitution.",
"max_score": 20
},
{
"name": "Invalid token errors",
"description": "Malformed or non-base64url input is detected via base64url decoding (decode or toBuffer) and surfaced as an error, instead of being silently accepted or sanitized manually.",
"max_score": 25
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-base64url