User Management & Authentication

There are a couple ways in which AtomChat can sync with your existing users. The quickest is to use the On-the-fly Method.

On-the-fly

You can create users on-the-fly and log them into AtomChat. Add the below code to your site template. Be sure to modify the variables to out the information programmatically.

HTML

Variable

Description

Mandatory

chat_name

Display name of the logged-in user

Yes

chat_id

Unique ID of the logged-in user

Yes

chat_avatar

Avatar image URL of the logged-in user



chat_link

Profile page URL of the logged-in user



For example, if you are using PHP, in most cases this information will be stored in your session variable after logging in the user. So your code will be similar to:

PHP

Via Restful API

You can use the createUser API in our Restful API to create users using your server code. Typically, you should create them when the user signs up.

HTML

Via Admin Panel

If you do not wish to sync your users with AtomChat, you can use our Admin Panel to manually manage your users. Visit AtomChat Admin Panel -> Users -> Add New User to create a new user.

HTML