Failing to associate the data being created with the logged-in user (user.id is 0 when calling Xano API from FlutterFlow, but works fine in API Test tab)

Hi! I'm integrating Xano with FlutterFlow and facing an issue where user.id always returns 0 when the request is sent from FlutterFlow.

I'm sending the request with the correct Authorization: Bearer <token> header (confirmed via browser inspection – see screenshot). However, in the endpoint logic, whenever I reference user.id, it comes through as 0.

If I test the same endpoint using the "API Test" tab inside Xano, and pass the same token, it returns the correct user ID.

This is affecting my logic because I'm trying to associate the data being created with the logged-in user.

I've already:

  • Verified the token is valid and complete

  • Checked that authentication is enabled for this endpoint

  • Confirmed that other fields in the body are coming through fine

Any idea why user.id is not being recognized from FlutterFlow requests?

Thanks in advance for your help!

1 reply