How to securely pass User and Company IDs around within

As my App gathers and processes data using Airtable, I need some secure ‘environment variables’ related to userId, CompanyId and Ids of other records.
What can I get from Softr’s user management and what needs to be done by me?
Is using JSON Web Tokens the best solution?
Has anybody used them or got better solutions?