Skip to main content
ShowErrorOptions
Example
export interface ShowErrorOptions {
  /**
   * `navigator.credentials.get()` の呼び出しが失敗した際にキャプチャされたエラーオブジェクト。
   * DOMException の `name` および `message` プロパティを少なくとも含む必要があります。
   * @type {WebAuthnErrorDetails}
   * @example { name: "NotAllowedError", message: "The operation was aborted by the user." }
   */
  error: WebAuthnErrorDetails;

  /**
   * 省略可能。`true` の場合、かつ画面コンテキスト(`screen.showRememberDevice`)が
   * デバイスの記憶を選択肢として示している場合、このブラウザ/デバイスを記憶するという
   * ユーザーの意図を示します。
   * @type {boolean | undefined}
   */
  rememberDevice?: boolean;
}

プロパティ

WebAuthn API (navigator.credentials.get()) から返されるエラーオブジェクトで、 DOMException の namemessage が含まれます。
rememberDevice?
boolean
任意。true で、かつ screen.showRememberDevicetrue の場合、 SDK はフォーム送信に rememberBrowser=true を含めます。