iya-sts
    Preparing search index...
    verifyFrom: (provider: Provider, jwt: string, sub: string) => Promise<any> = ...

    Type Declaration

      • (provider: Provider, jwt: string, sub: string): Promise<any>
      • Verifies a JWT a provider signed against its keys, with its iss the provider's and sub checked where one is given.

        Parameters

        • provider: Provider

          the provider

        • jwt: string

          the JWT

        • sub: string

          the expected subject, or ''

        Returns Promise<any>

        a promise of { ok: true, claims }, or { ok: false, why }