-
My extension uses a Cloudflare worker that facilitates requests to OpenAI, but I want to verify that the user is valid and has an active subscription before we perform that request. I need some sort of unique identifier that I could pass to the worker that could then verify with ExtensionPay that the user is valid and active. If anyone has had a similar issue and found a resolution I would love to read it. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Could you use the user's email address? That gets returned from ExtensionPay. |
Beta Was this translation helpful? Give feedback.
-
It's not officially supported but you can use the ExtPay internal API key. However, this is completely unique to every installation. You'd probably need to use the user's email to bridge between API keys since one user may have many different API keys. |
Beta Was this translation helpful? Give feedback.
-
Hey apologies for the delayed response. Just want to say that suggestion works perfectly for me. Thank you for the help @Glench. |
Beta Was this translation helpful? Give feedback.
It's not officially supported but you can use the ExtPay internal API key. However, this is completely unique to every installation. You'd probably need to use the user's email to bridge between API keys since one user may have many different API keys.