Recapp Code Reference
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    collectionName: string
    connector: DbClient = ...
    state: SessionStoreState = ...

    Methods

    • Parameters

      • from: ActorRef

      Returns Promise<
          [
              UserRole: AccessRole,
              UserID: string & BRAND<"UID">,
              IsTemporaryAccount: boolean,
          ],
      >

    • Parameters

      • uid: string & BRAND<"UID">

      Returns Promise<
          MaybeBase<
              {
                  accessToken: string;
                  actorSystem: string;
                  created: Timestamp;
                  fingerprint?: string;
                  idExpires: Timestamp;
                  idToken: string;
                  persistentCookie?: boolean;
                  refreshExpires: Timestamp;
                  refreshToken: string;
                  role: "STUDENT"
                  | "TEACHER"
                  | "ADMIN";
                  uid: string & BRAND<"UID">;
                  updated: Timestamp;
              },
          >,
      >

    • Abstract method that handles all incoming messages

      Parameters

      • from: ActorRef

        actor that has send the message

      • message:
            | { SessionStoreMessages: "Ping" } & { value: {} }
            | { SessionStoreMessages: "StoreSession" } & {
                value: Partial<
                    {
                        accessToken: string;
                        actorSystem: string;
                        created: Timestamp;
                        fingerprint?: string;
                        idExpires: Timestamp;
                        idToken: string;
                        persistentCookie?: boolean;
                        refreshExpires: Timestamp;
                        refreshToken: string;
                        role: "STUDENT"
                        | "TEACHER"
                        | "ADMIN";
                        uid: string & BRAND<"UID">;
                        updated: Timestamp;
                    },
                > & { uid: string & BRAND<"UID"> };
            }
            | { SessionStoreMessages: "CheckSession" } & {
                value: string & BRAND<"UID">;
            }
            | { SessionStoreMessages: "GetSessionForUserId" } & {
                value: string & BRAND<"UID">;
            }
            | { SessionStoreMessages: "GetSessionForClient" } & {
                value: string & BRAND<"UID">;
            }
            | { SessionStoreMessages: "RemoveSession" } & {
                value: string & BRAND<"UID">;
            }

        message type

      Returns Promise<SessionStoreResult>

      promised return value. If the caller used ask, this value will be returned to the calling actor

    • Parameters

      • entity: {
            accessToken: string;
            actorSystem: string;
            created: Timestamp;
            fingerprint?: string;
            idExpires: Timestamp;
            idToken: string;
            persistentCookie?: boolean;
            refreshExpires: Timestamp;
            refreshToken: string;
            role: "STUDENT" | "TEACHER" | "ADMIN";
            uid: string & BRAND<"UID">;
            updated: Timestamp;
        }

      Returns Promise<
          {
              accessToken: string;
              actorSystem: string;
              created: Timestamp;
              fingerprint?: string;
              idExpires: Timestamp;
              idToken: string;
              persistentCookie?: boolean;
              refreshExpires: Timestamp;
              refreshToken: string;
              role: "STUDENT"
              | "TEACHER"
              | "ADMIN";
              uid: string & BRAND<"UID">;
              updated: Timestamp;
          },
      >

    • Parameters

      • draft: SessionStoreState
      • entity: {
            accessToken: string;
            actorSystem: string;
            created: Timestamp;
            fingerprint?: string;
            idExpires: Timestamp;
            idToken: string;
            persistentCookie?: boolean;
            refreshExpires: Timestamp;
            refreshToken: string;
            role: "STUDENT" | "TEACHER" | "ADMIN";
            uid: string & BRAND<"UID">;
            updated: Timestamp;
        }

      Returns void