better-buddy-share-backend
    Preparing search index...
    interface ISessionDAO {
        cleanupExpiredSessionsAndTokens(): Promise<boolean>;
        createSession(
            userId: number,
            expiresAt: Date,
            ipAddress?: string | null,
            userAgent?: string | null,
            deviceInfo?: string | null,
        ): Promise<Session | null>;
        extendSession(
            sessionId: string,
            new_expires_at: Date,
        ): Promise<Session | null>;
        getActiveSessions(userId: number): Promise<Session[]>;
        revokeAllUserSessions(userId: number): Promise<boolean>;
        revokeSession(sessionId: string): Promise<boolean>;
        touchSessionLastUsed(sessionId: string): Promise<Session | null>;
    }

    Implemented by

    Index

    Methods

    • Parameters

      • userId: number
      • expiresAt: Date
      • OptionalipAddress: string | null
      • OptionaluserAgent: string | null
      • OptionaldeviceInfo: string | null

      Returns Promise<Session | null>