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

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

# Interface: BrowserLogin

Defined in: [packages/b2c-tooling-sdk/src/auth/types.ts:205](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b7ec7d4a1464ef7bbb6a5757ffd6f99a18a31bf6/packages/b2c-tooling-sdk/src/auth/types.ts#L205)

Pending browser login passed to a custom `openBrowser` callback by the
Authorization Code + PKCE flow. Lets a caller that shows the URL some other
way (for example, asking an MCP client to open it) give up on the login.

## Methods

### cancel()

> **cancel**(`reason?`): `void`

Defined in: [packages/b2c-tooling-sdk/src/auth/types.ts:207](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b7ec7d4a1464ef7bbb6a5757ffd6f99a18a31bf6/packages/b2c-tooling-sdk/src/auth/types.ts#L207)

Stops waiting for the redirect and fails the login with `reason`. No-op once the login has finished.

#### Parameters

##### reason?

`string`

#### Returns

`void`
