Replies: 2 comments 2 replies
-
|
Hello @madsteer and thank you for reaching out! The first thing to check is that you're using different API token types for these two SDKs. The The proxy serves both of these purposes, but needs to be provided the correct token type for the corresponding API |
Beta Was this translation helpful? Give feedback.
-
|
There's also some documentation here: https://docs.getunleash.io/understanding-unleash/unleash-overview#unleash-apis |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have my typescript UI working using
@unleash/proxy-client-react1FlagProvider. It calls off to my unleash proxy athttp://localhost:3000/proxy. I want to check feature flags in a backend typescript app so I installedunleash-clientthere and am following the docs here. Where I'm getting confused is the nodeunleash.isEnabled()seems to be callinghttp://127.0.0.1:3000/proxy/client/featuresinstead of, or in addition to,http://127.0.0.1:3000/proxyand I'm getting a 401 for my given client keyindeed, with curl I can auth to
http://127.0.0.1:3000/proxywith a an auth header ofAuthorization: client-keybuthttp://127.0.0.1:3000/proxy/client/featureswith that same auth header gets me a 401.I'm unable to understand how I can configure an auth key for that client/features path and/or check to see if a feature is turned on in a way that does not call the
http://127.0.0.1:3000/proxy/client/featuresurl.For context I'm running unleash proxy via Docker.
Thanks for any help
Beta Was this translation helpful? Give feedback.
All reactions