Skip to content

Commit

Permalink
Merge pull request #53 from supproduction/bugfix/fix-bapi-url
Browse files Browse the repository at this point in the history
fix: bapi envs
  • Loading branch information
tolerants authored Oct 21, 2024
2 parents 996e1d1 + d1bd872 commit 56fdeb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/platform/auth/src/bapi/feature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 56fdeb8

Please sign in to comment.