---
id: initializing
title: "Initializing"
slug: initializing
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
Create a new client for use in the browser.
```js
import { GoTrueClient } from '@supabase/gotrue-js'
const auth = new GoTrueClient({
url: "https://your-gotrue-url.com",
headers: {
apikey:
"",
Authorization:
"Bearer ",
},
})
```
```py
# Not yet implemented
```
## Parameters
-
options
required
object
No description provided.
Properties
-
autoRefreshToken
optional
| |
Set to "true" if you want to automatically refresh the token before expiring.
-
detectSessionInUrl
optional
| |
Set to "true" if you want to automatically detects OAuth grants in the URL and signs in the user.
-
headers
optional
|
Any additional headers to send to the GoTrue server.
-
localStorage
optional
Storage
No description provided.
-
persistSession
optional
| |
Set to "true" if you want to automatically save the user session into local storage.
-
url
optional
|
The URL of the GoTrue server.
## Examples
### Initialize a GoTrue client
```js
import { GoTrueClient } from '@supabase/gotrue-js'
const auth = new GoTrueClient({
url: "https://your-gotrue-url.com",
headers: {
apikey:
"",
Authorization:
"Bearer ",
},
})
```
```py
# Not yet implemented
```