Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / auth / createUserAuthStrategy

Function: createUserAuthStrategy()

createUserAuthStrategy(config): UserAuthStrategy

Defined in: packages/b2c-tooling-sdk/src/auth/oauth-pkce-fallback.ts:169

Builds the browser-based "user" auth strategy. Returns a plain PkceOAuthStrategy when the fallback is disabled (SFCC_DISABLE_PKCE_FALLBACK), otherwise a PkceWithImplicitFallbackStrategy.

Parameters

config

PkceOAuthConfig

Returns

UserAuthStrategy

Released under the Apache-2.0 License.