How to identify a contact when freshchat is initialized?

We are using Freshsales Suites to manage our contacts. We are creating a contact using API called from flutter mobile app. We also have integrated freshchat_sdk for flutter.
Now I need help in identifying contacts and getting their details when freshchat is initialized.
I want to map the contact whenever they start a chat.