Skip to content
View as Markdown
View as Markdown

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

Interface: ResolveAuthStrategyOptions

Defined in: packages/b2c-tooling-sdk/src/auth/resolve.ts:41

Options for resolving an auth strategy.

Properties

allowedMethods?

optional allowedMethods: AuthMethod[]

Defined in: packages/b2c-tooling-sdk/src/auth/resolve.ts:54

Allowed authentication methods in priority order. The first method with available credentials will be used. Defaults to ALL_AUTH_METHODS, where PKCE-based user auth is preferred over the deprecated implicit flow.

Note: the 'jwt' method is defined in the AuthMethod type but is not automatically resolvable here, because JWT auth requires file paths (e.g. certPath/keyPath) that are not part of the generic AuthCredentials accepted by this resolver. To use JWT, instantiate JwtOAuthStrategy directly instead of relying on resolveAuthStrategy.

Released under the Apache-2.0 License.