Skip to content

Commit

Permalink
fix(middleware): update bearer checker for undefined string
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao authored Dec 3, 2024
1 parent 174775f commit 7dcb616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v3/services/validator/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const authBearerCheck = (value: string) => {
}

const token = value.split(' ')[1];
if (!token) {
if (!token || token === 'undefined') {
throw new Error('Token is missing');
}

Expand Down

0 comments on commit 7dcb616

Please sign in to comment.