diff --git a/libs/platform/auth/src/bapi/feature.ts b/libs/platform/auth/src/bapi/feature.ts index c69c8d38..df487f97 100644 --- a/libs/platform/auth/src/bapi/feature.ts +++ b/libs/platform/auth/src/bapi/feature.ts @@ -34,10 +34,10 @@ export class BapiAuthFeature extends OauthFeature implements AppFeature { providers: [ { id: 'spryker', - clientId: 'frontend', + clientId: injectEnv('ORYX_BAPI_CLIENT_ID') ?? 'frontend', grantType: 'authorization_code', authUrl: new URL('/login', globalThis.location.origin).toString(), - tokenUrl: urlJoin('', '/token'), + tokenUrl: urlJoin(injectEnv('ORYX_BAPI_BACKEND_URL') ?? '', '/token'), redirectUrl: new URL( '/oauth/cb/spryker', globalThis.location.origin