import open from './OAuthPopup.ts';
try {
const response = await open('https://login.microsoftonline.com/{tenant}/oauth2/authorize?...', {name: 'Azure AD OAuth'});
console.log('Code: '+response.code);
} catch(e) {
console.log('Error: '+e);
}
Open a popup and go to the specified url
Available options
:
- name: name of the window
- width: width of the popup
- height: height of the popup
- left: position of the popup
- top: position of the popup
- delay: delay between polling execution