How to get user variables as magic text (external users table)

@valentine yup, that’s the current limitation, when you setup external collections in Adalo, there are only 2 things you get in return, External Auth Token & External User ID, so there’s no way to access the name & other details from DB.

As a workaround, the approach I am taking is to to perform a custom action upon clicking login before sending to Home Screen.

Here’s the sequence:

  1. Login
  2. Custom Action > Get Users from Xano > since you’re doing this as logged in user, you’ll get signed in users record
  3. Create a temp collection in Adalo with required details (i.e. name, email, phone # etc.)
  4. Now when you move to Home Screen after successful login, you’ll also have the new collection data along with Auth ID and Auth Token
  5. Show “Hi, “ on Home Screen from the data you just stored in temp collection.

You’ll have to perform some cleanup from time to time to clear the temp collection.

Hope it makes sense.

4 Likes