After logged in, calling api to get API token, saving it, and keeping it alive

Hi all,
I am still new with tadabase and I have been trying out different things on how I will be able to the following in tadabase:

  1. When user logs in, the app will call get API token.
  2. Then I want to record that API token either in a User table or a table just for token.
  3. Lastly, I need to run a schedule for get API token every X seconds and save it to the table where the token should be recorded. But if there’s a better way to refresh the token, I am all ears as well.

I know that I have to use pipes to do this but I am having difficulty in getting what I wanted.
Could someone please give me a step by step instruction on how to do this?
I really appreciate it.

Thanks!

Hello @handigard, using a combination of the PipeJS, the API you’re using, and the Tadabase REST API, you should be able to accomplish this by calling the API in JavaScript on the page where users land after they log in and then saving the response value to the Logged In Users Record. Here’s an example of how you can use PipeJS Chem's Code Gems - Display Results of a Pipe API Call as a List (Ep. 2)

Thank you @Chem !