restapi.services.authentication.BaseAuthentication.get_user

abstract BaseAuthentication.get_user(username=None, user_id=None)[source]

How to retrieve a single user from the current authentication db, based on the unique username or the user_id return None if no filter parameter is given

Parameters:
  • username (Optional[str], default: None)

  • user_id (Optional[str], default: None)

Return type:

Optional[Any]