fix(auth): preserve legacy provider setup
Some checks failed
Release / release-branches (auth) (push) Has been cancelled
Release / release-branches (payment) (push) Has been cancelled
Release / version-pr (push) Has been cancelled

This commit is contained in:
2026-08-21 08:15:35 +04:00
parent 3d8c2a3645
commit f6a58a9a3e

View File

@@ -10,10 +10,10 @@ export function normalizeMarketplaceDomain(domain: string): string {
@Injectable({ providedIn: 'root' })
export class AuthMarketplaceContext {
private readonly config = inject(MARKETPLACES_AUTH_CONFIG);
private readonly config = inject(MARKETPLACES_AUTH_CONFIG, { optional: true });
domain(): string {
const configured = this.config.marketplaceDomain;
const configured = this.config?.marketplaceDomain;
const domain = typeof configured === 'function'
? configured()
: configured ?? (typeof location === 'undefined' ? '' : location.hostname);