Issues a registration code for a registration: 32 random bytes as base64url, its SHA-256 hex
saved on the row with a 24-hour expiry. The plain code is returned once and never stored.
Runs under the registration lock. Throws when the registration does not exist or the save fails.
Issues a registration code for a registration: 32 random bytes as base64url, its SHA-256 hex saved on the row with a 24-hour expiry. The plain code is returned once and never stored. Runs under the registration lock. Throws when the registration does not exist or the save fails.