Q about passing dynamic auth token to API call

Question about the below documentation. Are we supposed to save the access token in the app state variable in this case? Don't access tokens expire after 1 hour? If we reference it in the API call, will the call fail after 1 hour?

https://docs.flutterflow.io/data-and-backend/api-calls/api-calls-101#passing-dynamic-auth-token

Passing dynamic auth token

You would probably want to pass the auth token returned as a response in the login API call. Such a token changes every time when you log in. Hence, you need a way to pass the dynamic token.

After the login call is succeeded, ensure you save the authentication token in an app state variable (with Persisted -> True).

2
13 replies