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

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

# Function: openUrlInBrowser()

> **openUrlInBrowser**(`url`): `Promise`\<`void`\>

Defined in: [packages/b2c-tooling-sdk/src/auth/open-browser.ts:15](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b7ec7d4a1464ef7bbb6a5757ffd6f99a18a31bf6/packages/b2c-tooling-sdk/src/auth/open-browser.ts#L15)

Opens a URL in the system default browser, the default behavior of browser
OAuth flows. Failures are logged at debug level and otherwise ignored, since
the flows also log the URL for the user to open by hand.

## Parameters

### url

`string`

URL to open

## Returns

`Promise`\<`void`\>
