Documentation
¶
Overview ¶
Package interactioncode generates and canonicalizes AAuth interaction codes (draft-hardt-oauth-aauth-protocol-09; format per the interaction-code requirements: unambiguous alphabet, minimum entropy). Mirrors @aauth/interaction-code from the reference TypeScript packages.
Codes are 8 characters of Crockford base32 (40 bits of entropy) rendered as XXXX-XXXX. The Crockford alphabet excludes I, L, O, U; canonicalization folds the lookalikes a user might type (i/l→1, o→0) and uppercases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Canonicalize ¶
Canonicalize normalizes user input for comparison: uppercase, strip separators/whitespace, fold I/L→1 and O→0, re-hyphenate as XXXX-XXXX.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.