Skip to content

Commit

Permalink
Don't display detailed errors from credentials file (#4004)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigurdm authored Aug 31, 2023
1 parent bddb0b8 commit edcd5c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/oauth2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ Credentials? loadCredentials() {

return credentials;
} catch (e) {
log.error('Warning: could not load the saved OAuth2 credentials: $e\n'
// Don't print the error message itself here. I might be leaking data about
// credentials.
log.error('Warning: could not load the saved OAuth2 credentials.\n'
'Obtaining new credentials...');
return null; // null means re-authorize.
}
Expand Down

0 comments on commit edcd5c2

Please sign in to comment.