iya-sts
    Preparing search index...
    recognize: (req: any, subject?: unknown) => any = ...

    Type Declaration

      • (req: any, subject?: unknown): any
      • Recognises the remembered browser a request carries, and flags what is odd about its token.

        A replayed generation marks the device compromised here.

        Parameters

        • req: any

          the request

        • Optionalsubject: unknown

          the person signing in, to flag a token naming somebody else's device

        Returns any

        null with no cookie or the feature off; { device: null, unreadable: true } for an unreadable one; otherwise the device, the claims and the replayed, stale, foreign and contextChanged flags