Using contacts for App Login - Possible?

Hey @danmoyle, Thanks to tagged here. I would love to suggest solutions on raised questions of @RGroothuis,

Hi @RGroothuis, to build an App with Adalo,

- Can I use the email address already stored in HubSpot?

1. Yes, You can definitely use the email address stored in HubSpot.

- Should I add a password field/property to the contacts? How can I make this a hash field as I don’t want to store plain password?

2. Yes, you should add a password field/property to the contacts. You can use a hashing algorithm to store the passwords in a secure way. You can use a hashing library like BCrypt or Argon2 to generate the hashes.

- Which API calls should I use to check the login credentials?

3. You will need to use the Contacts API to check the login credentials. The API call you need to make will depend on the type of authentication you are using. If you are using basic authentication, you can use the Search Contacts endpoint to check the credentials. If you are using OAuth authentication, you can use the Get Contact By ID endpoint to check the credentials.

Hope this helps!