C
C#9mo ago
whgrs1692

How do I pass through JWT token and customer headers

Not sure this approach is right. I have a webapi that will receive a bearer token and a custom header that it needs to pass on to another Api. ( Supabase PostgresSql ) from a front end client local storage. ( Blazor WASM). This paradigm has all the auth on the Supabase Postgrest Api. I'm not sure this is the best way to do it. Question: How do I access the JWT token and the custom header in the webapi post method? Is it simply a matter of grabbing the values from the HttpContext?
1 Reply
Plerx
Plerx9mo ago
yes HttpContext#Request#Headers and HttpContext#Request#Body
Want results from more Discord servers?
Add your server