Boolean|Object BX24.getAuth()

Retrieves data for authentication using OAuth 2.0. Returns an object in the following format:

{access_token: authentication_code, expires_in: code_expiration_date, refresh_token: authentication_renew_token, domain: current_domain, member_id: Intranet_ID}

The expiration date is returned as the Date object.

This function returns valid data only after BX24.init is called. Otherwise, it will return false.

When the ID expires, the new one is generated automatically when calling BX24.callMethod or BX24.refreshAuth.



User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix Inc.», 2001-2020, «Bitrix Inc.», 2020