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

    • The extensions of a registration, from the server's options.

      Parameters

      • o: any

        the server's creation options

      Returns any

      the extensions, or undefined where none is asked

    • Removes the flat extension members from a copy of the server's options a runtime hands the browser whole.

      Parameters

      • options: any

        the copy

      Returns void

      nothing

    • 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 ''

    • Whether this browser lacks what a WebAuthn ceremony needs: PublicKeyCredential, and navigator.credentials with the call asked.

      Parameters

      • navigator: any

        the browser's navigator

      • window: any

        the browser's window, for PublicKeyCredential

      • Optionalcall: string

        optional; create or get, both where left out

      Returns boolean

      true when the ceremony cannot run

    • The sentence a page without WebAuthn draws, in its language.

      Parameters

      • t: any

        the page's translator, or null

      Returns string

      the text

    • 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

    • The extensions of an assertion, from the server's options: the legacy U2F appid (WebAuthn Level 3 section 10.1.1).

      Parameters

      • o: any

        the server's request options

      Returns any

      the extensions, or undefined where none is asked