Version 1.0.1 is now available! Looking for a migration guide?
v1.0.1
/
  • Get Started
  • Working
  • GitHub
  • Overview
  • Introduction
  • Actions
  • Call
  • Call
  • CallList
  • CallList
  • FetchList
  • FetchList
  • Batch
  • Batch
  • BatchByChunk
  • BatchByChunk
  • Tools
  • HealthCheck
  • Ping
  • Logger
  • Logger
  • Telegram
  • Limiters
  • Limiters
  • B24Frame
  • Introduction
  • Initialization
  • Auth
  • Dialog
  • Options
  • Parent
  • Placement
  • Slider
  • b24ui
  • b24icons
v1.0.1
  • Get started
  • Working

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.
We are still updating this page. Some data may be missing here — we will complete it shortly.
// ... /////
$b24 = await initializeB24Frame()
if ($b24.auth.isAdmin) {
    // ... ////
}

Getters

isAdmin

get isAdmin(): boolean

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

Methods

Implements the AuthActions interface.

getAuthData

getAuthData(): false | AuthData

Returns authentication data AuthData if it has not expired. If expired, returns false.

refreshAuth

async refreshAuth(): Promise<AuthData>

Refreshes authentication data through the parent window and returns the updated data AuthData.

getUniq

getUniq(prefix: string): string

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

Used in B24PullClientManager

Initialization

Function is designed to initialize a B24Frame

Dialog

Used for displaying standard dialogs.

On this page

  • Getters
    • isAdmin
  • Methods
    • getAuthData
    • refreshAuth
    • getUniq
Releases
Published under MIT License.

Copyright © 2024-present Bitrix24