function cdb_auth(pEmail, pPassword, pTarget)


Updated 11/22/19

Summary

This function authenticates a user or developer account and returns an API key. Both local and cloud authentication will occur. Local authentication requires local data to exist to verify the account. You can check the authentication status with cdb_authStatus.

Inputs

  • pEmail (String) - The email of the account to authenticate. This value is case-sensitive.
  • pPassword (String) - The password of the account to authenticate. This value is case-sensitive.
  • pTarget (String) - The value must be "user" to authenticate user accounts, or "developer" to authenticate developer accounts (i.e., your LiveCloud account). "Developer" authorization should only be used if you need to do table/project management. See Accounts and Authorization for more details.

Additional Requirements

This API call requires internet access for cloud authentication.

Examples

# We want to authenticate a user account.

local tEmail, tPassword, tTarget

put "cora@fakeemail.com" into tEmail
put "corasfakeemail" into tPassword
put "user" into tTarget

get cdb_auth(tEmail,tPassword,tTarget)