Detect Which Account User is Logged-in to
Hi we have two Cloudinary accounts, prod and non-prod. When loading the Media Library Widget we would like to detect which account the user is logged into so that if they are not in the proper account we can log them out and authenticate to the correct environment.
The use case is as follows:
- User logged in to a non-production application and loaded the Cloudinary Media Library widget.
- User switched to the production application. When they go to interact with the Cloudinary Media Library widget, they are given the widget from the non-production account.
Ideally we would only log the user out if we detect that they are logged in to the incorrect Cloudinary account.
Post is closed for comments.