---
title: "Auth Manager Class"
description: "Designed for managing authentication in Bitrix24 applications. It handles authentication data received from the parent window and provides methods for updating and retrieving this data."
canonical_url: "https://bitrix24.github.io/b24jssdk/docs/working-with-the-rest-api/frame-auth"
last_updated: "2026-05-08"
---
# Auth Manager Class

> Designed for managing authentication in Bitrix24 applications. It handles authentication data received from the parent window and provides methods for updating and retrieving this data.

> [!WARNING]
> We are still updating this page. Some data may be missing here — we will complete it shortly.

```ts
// ... /////
$b24 = await initializeB24Frame()
if ($b24.auth.isAdmin) {
    // ... ////
}
```

## Getters

### isAdmin

```ts-type
get isAdmin(): boolean
```

Returns `true` if the current user has admin rights, otherwise `false`.

## Methods

> [!NOTE]
> See: https://github.com/bitrix24/b24jssdk/blob/main/packages/jssdk/src/types/auth.ts
> Implements the `AuthActions` interface.

### getAuthData

```ts-type
getAuthData(): false | AuthData
```

Returns authentication data [`AuthData`](https://github.com/bitrix24/b24jssdk/blob/main/packages/jssdk/src/types/auth.ts) if it has not expired. If expired, returns `false`.

### refreshAuth

```ts-type
async refreshAuth(): Promise<AuthData>
```

Refreshes authentication data through the parent window and returns the updated data [`AuthData`](https://github.com/bitrix24/b24jssdk/blob/main/packages/jssdk/src/types/auth.ts).

### getUniq

```ts-type
getUniq(prefix: string): string
```

Returns a unique string consisting of the given prefix and `AuthData.memberId`.

> Used in `B24PullClientManager`

## Sitemap

See the full [sitemap](/b24jssdk/sitemap.md) for all pages.
