diff --git a/utils/oauth.ts b/utils/oauth.ts index 8d8b5a13..21c44bb1 100644 --- a/utils/oauth.ts +++ b/utils/oauth.ts @@ -49,13 +49,7 @@ export const checkIfOauthIsValid = ( } // If there are scopes left, check if they match - if ( - nonMatchedScopes.every((scope) => - application.scopes.split(" ").includes(scope), - ) - ) { - return true; - } - - return false; + return nonMatchedScopes.every((scope) => + application.scopes.split(" ").includes(scope), + ); };