I am building an interface that has a two step process. This is reflected with two different web apps, both on Softr, and both are connected to the same user base. However, the two web apps have two totally different purposes, require different headers, etc. I would like users to be able to login once to a general portal that they can then either direct themselves to one of the two websites and then easily navigate between both sides of the websites, without having to login twice. Any suggestions on how to achieve this?
The way to do this is to have two magic link fields (url fields in Airtable) in your users table.
One magic link field for the first app, the other magic link field for the second app.
Then, you will edit the connection with the datasource in each of your app, specifically the Magic Link (optional) field. One app will be connected to the magic link field 1 of your users table in Airtable, the other app will be connected to the magic link field 2 of your users table in Airtable (see the 3 screenshots below).
In each app you will create a page with a list-details block (or add this block in an existing page).
You will display the magic link for the other app with a url Softr field.
This list-details block needs to be conditionally filtered so that only the current logged in user see their magic links. (For example “email is logged in user’s email” or " recordId is logged in user’s recordId).
This way when a user clicks on a link they will be redirected and automatically logged in in the other app.
CAREFUL: these blocks displaying the magic links must be inside a logged in user page only.
For security reasons these magic links, displayed in the frontend, must be seen only by the current logged in user (unless a user has a super admin level…)