I would like to include the cookie data in the query to plugin, but it looks like network connection to Plugin server is from ChatGPT server, so cannot pass the cookie from client side.
Is there any good way to pass values from client browser to plugin server?
For security reasons I can’t imagine OpenAI giving plugins access to cookies.
What problem are you trying to solve?
I implemented Google login using the OAuth feature in a plugin, but I don’t know how to identify the user after logging in. Although a Bearer token is passed with each query in the Authorization header, I don’t know how to associate it with the user.
When ChatGPT is completing the Oauth code flow, it asks for an access token to your backend.
Then chatGPT will add this access token in the Authorization header of every request.
You must find a way to be able to find the user based on the incoming access token.
You have multiple ways to do it:
- Use a Jwt in which you add the user id.
- Use an encrypted version of the user id
- Store the access token in DB and link it to your user.
Hope it helps