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.
0
-
Hi Marcin,
Maybe I am missing something but when one creates the media library widget object, you pass in the cloud that you wish to access. Is that not the case on your end?
Regards,
Daniel0
Post is closed for comments.
Comments
1 comment