---
title: supertokens-web-js
description: References documentation for the supertokens-web-js package
sidebar:
  order: 10
---

## Classes

### default

Defined in: [tmp/supertokens-web-js/lib/ts/index.ts:20](https://github.com/supertokens/supertokens-web-js/blob/be2e0fd7dcade8352cdc9639abe968e5cda5b1cd/lib/ts/index.ts#L20)

#### Constructors

##### Constructor

```ts check=false reason="Generated API signature"
new default(): default;
```

###### Returns

[`default`](#default)

#### Methods

##### init()

```ts check=false reason="Generated API signature"
static init(config): void;
```

Defined in: [tmp/supertokens-web-js/lib/ts/index.ts:21](https://github.com/supertokens/supertokens-web-js/blob/be2e0fd7dcade8352cdc9639abe968e5cda5b1cd/lib/ts/index.ts#L21)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `config` | [`SuperTokensConfig`](types#supertokensconfig) |

###### Returns

`void`

## Variables

### init()

```ts check=false reason="Generated API signature"
const init: (config) => void = SuperTokensAPIWrapper.init;
```

Defined in: [tmp/supertokens-web-js/lib/ts/index.ts:26](https://github.com/supertokens/supertokens-web-js/blob/be2e0fd7dcade8352cdc9639abe968e5cda5b1cd/lib/ts/index.ts#L26)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `config` | [`SuperTokensConfig`](types#supertokensconfig) |

#### Returns

`void`

## References

### SuperTokensConfig

Re-exports [SuperTokensConfig](types#supertokensconfig)

***

### SuperTokensPlugin

Re-exports [SuperTokensPlugin](types#supertokensplugin)

***

### SuperTokensPublicConfig

Re-exports [SuperTokensPublicConfig](types#supertokenspublicconfig)

***

### SuperTokensPublicPlugin

Re-exports [SuperTokensPublicPlugin](types#supertokenspublicplugin)
