Humble noob here.
Using external user beta with Xano for backend.
How do I get the magic text from the Logged In User to show more than: count, id, and create date?
How do I get the other variables to display?
Example: “Hi, -logged in user firstname-!”
Collections tab shows it detects the user variables from the collection.
I can make a list with those variables.
If you are able to use the logged in user data in lists, then the data should be available on all pages. Could you send some screenshots or a small screencast to see where is might be failing and also to see what fields you have in your external user database. Thanks
To make the text have the user name, do this "Hello, and choose “first” and then “last”, to make that passible “Logged In user>First” and repeat “Logged in user>Last”
Those options are not available. As shown in the screenshot, my only options are
Logged In User > External Users Auth,
Logged In User > External Users ID
@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:
Login
Custom Action > Get Users from Xano > since you’re doing this as logged in user, you’ll get signed in users record
Create a temp collection in Adalo with required details (i.e. name, email, phone # etc.)
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
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.
@crmorris2 I’m still a bit lost on how to lay out the solution offered. If anyone could help with a bit more detail on how to do this, that would be great!