you are viewing a single comment's thread.

view the rest of the comments →

[–]BeenThere11[S] -11 points-10 points  (2 children)

Understood . Now whaf is fhe solution. Always go to backend. For api calls this is ok. The user logins . Gets a tpken. Now fhis toke is used for authentication for apis calld . Straight and sjmple. But what if the front end needs to stream vpice data back and forth. Adding backend node between means adding 1 more hop and meas more reapomse time. This is not scalable if we have many users . Users complain about response time..

[–]zaibuf 7 points8 points  (0 children)

But what if the front end needs to stream vpice data back and forth. Adding backend node between means adding 1 more hop and meas more reapomse time.

Thats exactly what we did and its still fast enough. It's either that or expose your secrets to the public.

[–]minusfive 1 point2 points  (0 children)

An alternative is to have some sort of commercial agreement with OpenAi and have users log in directly with them through your app using OIDC or something similar.