# Disconnect

## Description

Function that clears the user password saved in local storage. The user will be prompted to enter their password again the next time they try to interact with their wallet.&#x20;

This function should be called when the user logs out of their account.

## Details

### Signature

`Disconnect(apiKey)`

### Arguments

<table><thead><tr><th width="258">Parameter</th><th width="114">Type</th><th>Definition</th></tr></thead><tbody><tr><td><code>apiKey</code></td><td>String</td><td>The API Key generated from the <a href="https://developer-test.usemeta.fi/">Developer Portal</a></td></tr></tbody></table>

### Return Value

None.

## Example

{% code title="custom-tokens.js" lineNumbers="true" %}

```jsx
import { Disconnect } from '@metafi/metafi-js-package';

function App() {

    const handleDisconnect = () => {
        Disconnect("YOUR-API-KEY");
    }
    
    return (
        <div>
	    <button onClick={handleDisconnect}>Logout</button>
        </div>
    );
}

export default App;

```

{% endcode %}
