Skip to content

ndi.cloud.auth.login

  LOGIN - logs in a user

  [AUTH_TOKEN,ORGANIZATION_ID] = ndi.cloud.auth.LOGIN(EMAIL, PASSWORD)

  Inputs:
    EMAIL - a string representing the user's e-mail
    PASSWORD - a string representing the user's password

  Outputs:
    STATUS - did the user logs in successfully? 1 for no, 0 for yes
    AUTH_TOKEN - bearer token
    ORGANIZATION_ID - the organization id that the user belongs to