aad_oauth
aad_oauth copied to clipboard
Add AadAuthException to allow selective error handling
This PR allows selective error handling by library consumers. It can be useful in f.e.: handling the back button on the login page:
try {
await logIn();
} on AadAuthException catch (e) {
if(e.errorSubcode == "cancel") {
// User pressed back button on login page, do something
} else {
// Other error occurred, do something else
}
}