iya-sts
    Preparing search index...

    Base64url and a credential's JSON form. A static utility class.

    Index
    • An assertion's answer, as the server reads it.

      Parameters

      • a: any

        the PublicKeyCredential

      Returns any

      the JSON form

    • Base64url of bytes, no padding.

      Parameters

      • b: any

        an ArrayBuffer or a view

      Returns string

      the encoding

    • Bytes of a base64url string.

      Parameters

      • s: string

        the encoding

      Returns Uint8Array

      the bytes

    • What the platform reports about itself, where it reports anything: PublicKeyCredential.getClientCapabilities(), feature-detected.

      Parameters

      • window: any

        the browser's window

      Returns Promise<any>

      the promise of the capability record, or of null

    • A registration's answer, as the server reads it.

      Parameters

      • c: any

        the PublicKeyCredential

      Returns any

      the JSON form

    • How a failed registration's error reads (#944): unsupported for NotSupportedError, uncertain for NotAllowedError and UnknownError, '' for anything else.

      Parameters

      • name: string

        the error's name

      Returns string

      the kind, or ''

    • Shows the page's guidance after a registration failed (#944), where the page drew one and the error is one it is for; the failure is reported either way it is handled.

      Parameters

      • doc: any

        the document

      • window: any

        the window

      • error: any

        what the ceremony threw

      • said: any

        { surface, fallback }: the page's surface and the server's fallback facts

      Returns Promise<boolean>

      the promise of whether the guidance was shown, in place of sending the failure on

    • Reports a ceremony that failed in the browser through its owning surface.

      Parameters

      • report: any

        { surface, ceremony, error, kind, capabilities, offered, retrying }

      • Optionalsend: (error: string, capabilities: any) => void

        the surface's authenticated ceremony operation

      Returns void

      nothing