Hi there …
On all Wix sites, the DOM is off limit! That includes the window , check if the API provider can give you a redirect URI, then use it to redirect your users to authenticate their login, or you can open a modal , whatever you prefer.
Hope this helps~!
Ahmad