How to Pass session_id from AppState as a Header in FlutterFlow API Calls

Database & APIs

After a successful login API call, capture the returned session_id and securely store it in the application’s AppState. For subsequent API requests, retrieve the session_id from AppState and include it in the request headers to ensure authenticated communication.

What have you tried so far?

i set the api header as X-Session-Id: AppState.sessionId

Did you check FlutterFlow's Documentation for this topic?
Yes
2
3 replies