File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { format } from 'date-fns';
33import semver from 'semver' ;
44
55import { APPLICATION } from '../../../shared/constants' ;
6- import { logError } from '../../../shared/logger' ;
6+ import { logError , logWarn } from '../../../shared/logger' ;
77import type {
88 Account ,
99 AuthCode ,
@@ -179,6 +179,13 @@ export async function refreshAccount(account: Account): Promise<Account> {
179179 account . hasRequiredScopes = Constants . AUTH_SCOPE . every ( ( scope ) =>
180180 accountScopes . includes ( scope ) ,
181181 ) ;
182+
183+ if ( ! account . hasRequiredScopes ) {
184+ logWarn (
185+ 'refreshAccount' ,
186+ `account for user ${ account . user . login } is missing required scopes` ,
187+ ) ;
188+ }
182189 } catch ( err ) {
183190 logError (
184191 'refreshAccount' ,
You can’t perform that action at this time.
0 commit comments