Expand description
Pairing protocol facade — re-exports from auths-pairing-protocol
plus transport-specific QR rendering and error types.
Modules§
Structs§
- Base64
UrlEncoded - A base64url-encoded (no padding) byte string.
- Create
Session Request - Request to create a new pairing session.
- Create
Session Response - Response to session creation.
- GetConfirmation
Response - Response when polling for confirmation.
- GetSession
Response - Response when getting session status.
- Pairing
Response - A response to a pairing request from the responding device.
- Pairing
Session - Ephemeral keypair for a pairing session.
- Pairing
Token - A pairing token for initiating cross-device identity linking.
- QrOptions
- QR code rendering options.
- Submit
Confirmation Request - Request to submit a SAS confirmation (or abort).
- Submit
Response Request - Request to submit a pairing response.
- Success
Response - Response for successful operations.
Enums§
- Pairing
Error - Errors that can occur during the pairing protocol.
- Protocol
Error - Protocol-level errors for the pairing exchange.
- Session
Status - Session status.
Functions§
- format_
pairing_ qr - Format a pairing QR code with header text for terminal display.
- normalize_
short_ code - Normalize a short code: uppercase, strip spaces/dashes.
- render_
qr - Render a pairing token as a QR code string for terminal display.
- render_
qr_ from_ data - Render arbitrary data as a QR code string for terminal display.