Authentication flow

RegulatoryHeron1 month ago

Hi, how long is the token valid for, does it expire hen i revoke it/logout or it has short time expiry, I'm asking because i have a case where i want demo user to be authenticated for long time

terra

Vanessaadmin1 day ago

Hey there,

The token you generate from /auth/generateAuthToken lives for 180 seconds (3 minutes). This is totally normal, it’s a one-time token used only to kick off the initial initConnection() flow in Terra’s mobile SDKs.

Once the user goes through that first connection step:

You’re done with tokens. Terra takes over all authentication behind the scenes.

The connection stays active and users don’t need to re-authenticate.

The short expiry doesn’t affect ongoing data access. It only applies to that first connection screen.

For your demo user, this won’t cause any issues as long as initConnection() happens within those 3 minutes, the user will stay connected for the long term. Terra keeps everything authenticated automatically.


Cookie Preferences

Essential CookiesAlways On
Advertisement Cookies
Analytics Cookies

Crunch Time: Embrace the Cookie Monster Within!

We use cookies to enhance your browsing experience and analyse our traffic. By clicking “Accept All”, you consent to our use of cookies according to our Cookie Policy. You can change your mind any time by visiting out cookie policy.