@salesforce/b2c-tooling-sdk / auth / ResolveAuthStrategyOptions
Interface: ResolveAuthStrategyOptions
Defined in: packages/b2c-tooling-sdk/src/auth/resolve.ts:40
Options for resolving an auth strategy.
Properties
allowedMethods?
optionalallowedMethods:AuthMethod[]
Defined in: packages/b2c-tooling-sdk/src/auth/resolve.ts:52
Allowed authentication methods in priority order. The first method with available credentials will be used. Defaults to: ['client-credentials', 'implicit', 'basic', 'api-key'].
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.