---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [auth](../index.md) / ResolveAuthStrategyOptions

# Interface: ResolveAuthStrategyOptions

Defined in: [packages/b2c-tooling-sdk/src/auth/resolve.ts:41](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/auth/resolve.ts#L41)

Options for resolving an auth strategy.

## Properties

### allowedMethods?

> `optional` **allowedMethods**: [`AuthMethod`](../type-aliases/AuthMethod.md)[]

Defined in: [packages/b2c-tooling-sdk/src/auth/resolve.ts:54](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/auth/resolve.ts#L54)

Allowed authentication methods in priority order.
The first method with available credentials will be used.
Defaults to [ALL\_AUTH\_METHODS](../variables/ALL_AUTH_METHODS.md), where PKCE-based `user` auth is
preferred over the deprecated `implicit` flow.

Note: the `'jwt'` method is defined in the [AuthMethod](../type-aliases/AuthMethod.md) 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](AuthCredentials.md) accepted by this resolver. To use JWT, instantiate
`JwtOAuthStrategy` directly instead of relying on `resolveAuthStrategy`.
