iya-sts
    Preparing search index...
    decide: (
        req: any,
        grant: any,
        session: any,
        selection: any,
    ) => Promise<
        | {
            none: boolean;
            pushed?: undefined;
            redirect?: undefined;
            why?: undefined;
        }
        | {
            none?: undefined;
            pushed?: undefined;
            redirect: string;
            why?: undefined;
        }
        | { none?: undefined; pushed: boolean; redirect?: undefined; why: string },
    > = ...

    Type Declaration

      • (
            req: any,
            grant: any,
            session: any,
            selection: any,
        ): Promise<
            | {
                none: boolean;
                pushed?: undefined;
                redirect?: undefined;
                why?: undefined;
            }
            | {
                none?: undefined;
                pushed?: undefined;
                redirect: string;
                why?: undefined;
            }
            | { none?: undefined; pushed: boolean; redirect?: undefined; why: string },
        >
      • Records the resource owner's decision on a grant and follows the finish method.

        Parameters

        • req: any

          the request from the approval page

        • grant: any

          the grant

        • session: any

          the resource owner's session

        • selection: any

          { approve, tokens, subject }, with the rights the resource owner left ticked

        Returns Promise<
            | {
                none: boolean;
                pushed?: undefined;
                redirect?: undefined;
                why?: undefined;
            }
            | {
                none?: undefined;
                pushed?: undefined;
                redirect: string;
                why?: undefined;
            }
            | { none?: undefined; pushed: boolean; redirect?: undefined; why: string },
        >

        what the page does next: { redirect }, { pushed, why } or { none }