Closer
Search…
Closer
Closer guides and FAQ
Back to Closer
Guide
Onboarding
Zacznij używać Closer
Zarządzaj doradcami
Skonfiguruj routing
Getting deeper in dashboard
Getting deeper in widget
Notifications
How to
Schedule online meetings
Click to call
Tagging
Proactive messages
Set up skill-based routing
Manage your team’s workload
Force new user everytime in widget
User authorization callbacks
On deinit callback
Identify leads
Reports
SLA
Customer typing preview
Push out data with Webhooks
Routing
Widget OAuth configuration
Forms configuration
Elasticsearch business logs
Elasticsearch security logs
Manage widget button
Contact us
Supported browsers
Upcoming features drafts
FAQ
General
Bots
Calendar
Random
Powered By
GitBook
User authorization callbacks
You can provide a function to be called after user succesful user authorization in widget.
1
closer.init({
2
orgId: "00000000-0000-0000-0000-000000000000",
3
onUserAuthorizationSuccess: () => console.log("USER AUTHORIZED")
4
});
Copied!
If you use OAuth for customers authorization that provides ID Token you can get it in this callback.
1
closer.init({
2
orgId: "00000000-0000-0000-0000-000000000000",
3
onUserAuthorizationSuccess: (authorizationResult: {idToken?: string}) => console.log(idToken)
4
});
Copied!
Sometimes your user might not authorize, especially when using OAuth. There is other callback for that situation.
1
closer.init({
2
orgId: "00000000-0000-0000-0000-000000000000",
3
onUserAuthorizationFailed: () => console.log("USER FAILED TO AUTHORIZED")
4
});
Copied!
Previous
Force new user everytime in widget
Next
On deinit callback
Last modified
11mo ago
Copy link