Fix crash with creds.getToken error when you have saved credentials.
I also removed saving the credentials in CI mode, because that's a different kind of credentials object, ie ApplicationTokenCredentials vs DeviceTokenCredentials so loading this kind of credentials from cache won't work for now.
I suggest we use proper adapters for saving/loading credentials to avoid this kind of issues in the future, if we plan to support other auth methods.
Type of change
Please delete options that are not relevant.
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Pull Request Template
Description
Fix crash with
creds.getToken
error when you have saved credentials.I also removed saving the credentials in CI mode, because that's a different kind of credentials object, ie
ApplicationTokenCredentials
vsDeviceTokenCredentials
so loading this kind of credentials from cache won't work for now. I suggest we use proper adapters for saving/loading credentials to avoid this kind of issues in the future, if we plan to support other auth methods.Type of change
Please delete options that are not relevant.