IO Wallet SDK
    Preparing search index...
    • Decode a form_post.jwt and return the final JWT. The formData here is in form_post.jwt format as defined in JWT Secured Authorization Response Mode for OAuth 2.0 (JARM)

      Type Parameters

      • T

      Parameters

      • options: GetJwtFromFormPostOptions<T>

        Form post extraction options.

        Options for extracting and decoding the JWT from a form_post.jwt response

        • formData: string

          Raw HTML containing the autosubmitted form with the jwt response

        • schema: ZodType<T>

          Schema for parsing and validating

      Returns Promise<
          {
              decodedJwt: DecodeJwtResult<
                  undefined,
                  ZodType<T, unknown, $ZodTypeInternals<T, unknown>>,
              >;
              jwt: string;
          },
      >

      The compact JWT and decoded JWT data.

      If the response input cannot be found in the form data.

      <!DOCTYPE html>
      <html>
      <head>
      <meta charset="utf-8" />
      </head>
      <body onload="document.forms[0].submit()">
      <noscript>
      <p>
      <strong>Note:</strong> Since your browser does not support JavaScript, you must press the Continue button once to proceed.
      </p>
      </noscript>
      <form action="iowalletexample//cb" method="post">
      <div>
      <input type="hidden" name="response" value="somevalue" />
      </div>
      <noscript>
      <div>
      <input type="submit" value="Continue" />
      </div>
      </noscript>
      </form>
      </body>
      </html>