Skip to content

Commit dfd5c0c

Browse files
author
Shubham Shah
committed
Merge pull request modelcontextprotocol#101: Improve authentication handling
2 parents 32c065d + 0f82676 commit dfd5c0c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

auth.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export class AuthHandler {
2+
validateToken(token: string): boolean {
3+
return token.length > 0 && token.startsWith('Bearer ');
4+
}
5+
}

0 commit comments

Comments
 (0)