8 Commits

2 changed files with 2 additions and 5 deletions

View File

@@ -15,11 +15,8 @@ export class AuthGuard extends PassportAuthGuard('azure-ad') implements CanActiv
'isPublic',
context.getHandler()
);
const req = context.switchToHttp().getRequest();
const authHeader = req.headers.authorization;
const token = authHeader && authHeader.split(' ')[1];
if (isPublic && !token) {
if (isPublic) {
return true;
}

View File

@@ -1,6 +1,6 @@
{
"name": "@noahspan/noahspan-modules",
"version": "0.4.0",
"version": "0.3.9",
"description": "",
"author": "",
"license": "UNLICENSED",