> For the complete documentation index, see [llms.txt](https://docs.altura.com/altura-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.altura.com/altura-documentation/js-sdk-reference/get-methods/verify-a-users-altura-guard-code.md).

# Verify a User's Altura Guard Code

Use this method to authenticate users with [Altura Guard](broken://pages/ji3Hsh5IwNtkUKhHg256).&#x20;

### Usage in your script

{% tabs %}
{% tab title="JavaScript" %}

```javascript
const response = await altura.authenticateUser(WALLET_ADDRESS, ALTURA_GUARD);

const authenticated = response.authenticated
```

{% endtab %}

{% tab title="TypeScript" %}

```typescript
const response: { authenticated: boolean } = await altura.authenticateUser(WALLET_ADDRESS, ALTURA_GUARD);

const authenticated = response.authenticated;
```

{% endtab %}
{% endtabs %}

### **Parameters**

<table><thead><tr><th width="193.33333333333331">Parameter</th><th width="88">Type</th><th width="109">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>wallet_address</code></td><td><strong>String</strong></td><td><strong>Yes</strong></td><td>Unique wallet address of user</td></tr><tr><td><code>altura_guard</code></td><td><strong>String</strong></td><td><strong>Yes</strong></td><td>Altura Guard code</td></tr></tbody></table>
