Issue Summary:
We are experiencing an issue with Forge's External Auth Provider integration using Keycloak. After a successful authentication, `keycloak.hasCredentials()` incorrectly returns `false` on the first attempt, but returns `true` on subsequent requests.
Environment:
- Forge App using External Auth Provider
- Auth Provider: Keycloak
- Runtime: Node.js 20.x
- Forge API: @Forge/api
Code Implementation:
const keycloak = await api.asUser().withProvider("keycloak", "custom-backend");
if (!(await keycloak.hasCredentials(["email"]))) {
await keycloak.requestCredentials();
}
Hey @Akshat Patel ,
Probably won't be much of a help here, but if you don't get any response, I'd suggest asking this question in the Developer Community. (it's a separate community from this one)
You'll probably get some good insights on how to resolve this from the dev folks there.
Cheers,
Tobi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.