drupflare/worker - v1.0.4
    Preparing search index...

    Function readProvider

    • Reads a discovery document, refusing one whose issuer does not match where it was fetched from.

      The iss claim is verified against this value later, so a document free to name any issuer would let one provider mint tokens accepted as another's.

      Parameters

      • doc: unknown
      • expectedIssuer: string

      Returns OidcProvider | { refusal: string }