chore: Address PR comments 2
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
"@backstage/backend-common": "workspace:^",
|
||||
"@backstage/backend-plugin-api": "workspace:^",
|
||||
"@backstage/catalog-model": "workspace:^",
|
||||
"@backstage/errors": "workspace:^",
|
||||
"@backstage/plugin-auth-node": "workspace:^",
|
||||
"@types/passport-oauth2": "^1.4.15",
|
||||
"jose": "^4.6.0",
|
||||
@@ -37,6 +36,7 @@
|
||||
"@backstage/backend-test-utils": "workspace:^",
|
||||
"@backstage/cli": "workspace:^",
|
||||
"@backstage/config": "workspace:^",
|
||||
"@backstage/errors": "workspace:^",
|
||||
"@backstage/plugin-auth-backend": "workspace:^",
|
||||
"msw": "^2.0.8",
|
||||
"supertest": "^6.3.3"
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { stringifyEntityRef } from '@backstage/catalog-model';
|
||||
import { NotFoundError } from '@backstage/errors';
|
||||
import {
|
||||
createSignInResolverFactory,
|
||||
OAuthAuthenticatorResult,
|
||||
@@ -60,7 +59,7 @@ export namespace vmwareCloudSignInResolvers {
|
||||
},
|
||||
});
|
||||
} catch (e) {
|
||||
if (e.name !== NotFoundError.name) {
|
||||
if (e.name !== 'NotFoundError') {
|
||||
throw e;
|
||||
}
|
||||
return ctx.issueToken({
|
||||
|
||||
Reference in New Issue
Block a user