Supabase Insert user row after custom authentication using phone and OTP

Integrations

I have created a custom authentication flow where i am able to send OTP and verify the phone number. After verification, i want to insert the authenticated user to supabase table where row level policy for authenticated user is enabled.

During row insertion i am getting error "new row violates row-level security policy for table"

What have you tried so far?

Fetched parameters from browser's Network tab and tried on Postman. The only error is Flutterflow is sending Authorization header as "Bearer anonkey_of_supabase".

Apikey in headers is fine.

If i replace Authorization header with "Bearer auth_token" which is received after successful custom auth, then everything is fine.

How can i replace the token flutterflow is using by default.

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