Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UserRepository

User repository interface for retrieving user related data. Implementations can retrieve users from different databases etc.

Hierarchy

  • UserRepository

Index

Methods

Methods

getUserByLogin

  • getUserByLogin(loginId: string, callback: function): any
  • Retrieves a user object from a data source by login id (i.e. username, email)

    Parameters

    • loginId: string

      A unique login id used to identify the user

    • callback: function
        • (err?: Error, user?: any): any
        • Parameters

          • Optional err: Error
          • Optional user: any

          Returns any

    Returns any

    • Returns the user data if user was found

Generated using TypeDoc