iya-sts
    Preparing search index...

    Variable renewIfDue

    renewIfDue: (req: any, res: any, surfaceId: string) => Promise<RenewalAnswer> = ...

    Type Declaration

      • (req: any, res: any, surfaceId: string): Promise<RenewalAnswer>
      • Renews a surface session's tokens with its refresh token when they are about to run out, writing them onto the same session.

        A renewal already in flight for the session is shared rather than repeated. A session that cannot be renewed is ended.

        Parameters

        • req: any

          the request

        • res: any

          its response

        • surfaceId: string

          the surface

        Returns Promise<RenewalAnswer>

        { renewed }, with ended, elsewhere, session and why as they apply