Compare commits
3 Commits
feature/3-
...
feature/8-
| Author | SHA1 | Date | |
|---|---|---|---|
| adfbd5f8a3 | |||
| 72683c9ae2 | |||
| fcffd65d33 |
@@ -15,8 +15,11 @@ 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) {
|
||||
if (isPublic && !token) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@noahspan/noahspan-modules",
|
||||
"version": "0.3.9",
|
||||
"version": "0.4.0",
|
||||
"description": "",
|
||||
"author": "",
|
||||
"license": "UNLICENSED",
|
||||
|
||||
Reference in New Issue
Block a user