<!--- auth.stories.mdx --->

import { Meta } from '@storybook/addon-docs';

<Meta title="utils/auth" />

# import

```js
import { auth } from '@strapi/helper-plugin';
```

## Usage

| Method          | usage                                                  | example                                     |
| --------------- | ------------------------------------------------------ | ------------------------------------------- |
| clear           | clears the localStorage                                | auth.clear('STRAPI_UPDATE_NOTIF')           |
| clearAppStorage | clears all storages                                    | auth.clearAppStorage()                      |
| get             | get a value from the storage                           | auth.get('STRAPI_UPDATE_NOTIF')             |
| set             | set a value from the storage, default : sessionStorage | auth.set('STRAPI_UPDATE_NOTIF', true, true) |
