MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isToken68

Function isToken68

packages/core/sdk/src/www-authenticate.ts:31–31  ·  view source on GitHub ↗
(word: string)

Source from the content-addressed store, hash-verified

29// characters per RFC 3986, no whitespace/comma/quotes.
30const isUrlish = (word: string): boolean => /^[A-Za-z][A-Za-z0-9+.-]*:\/\/[^\s,"]+$/.test(word);
31const isToken68 = (word: string): boolean => [...word].every((ch) => TOKEN68_RE.test(ch));
32
33/** Parse authentication challenges without joining parameters across schemes. */
34export const parseChallenges = (header: string): readonly Challenge[] | null => {

Callers 1

parseChallengesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected