iya-sts
    Preparing search index...

    Variable redirectPolicyFor

    redirectPolicyFor: (
        opts: any,
    ) =>
        | { redirect: boolean; requirement?: undefined; why?: undefined }
        | { redirect: boolean; requirement?: undefined; why: string }
        | { redirect: boolean; requirement: string; why: string } = redirectPolicyFor

    Type Declaration

      • (
            opts: any,
        ):
            | { redirect: boolean; requirement?: undefined; why?: undefined }
            | { redirect: boolean; requirement?: undefined; why: string }
            | { redirect: boolean; requirement: string; why: string }
      • Decides whether an authorization error may be redirected to the client: not when nobody has been authenticated (section 4.11.2).

        Parameters

        • opts: any

          hasSession, fromSignIn and prompt

        Returns
            | { redirect: boolean; requirement?: undefined; why?: undefined }
            | { redirect: boolean; requirement?: undefined; why: string }
            | { redirect: boolean; requirement: string; why: string }

        { redirect, why, requirement }