MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / getRawTokenFromRequest

Function getRawTokenFromRequest

packages/auth-server/src/server/session.ts:18–20  ·  view source on GitHub ↗
(req: any)

Source from the content-addressed store, hash-verified

16}
17
18export async function getRawTokenFromRequest(req: any) {
19 return (await _getValidToken(req))?.token || null;
20}
21
22export async function getValidSessionTokenFromRequest(req: any) {
23 return (await _getValidToken(req))?.user || null;

Callers 1

tokenRawMethod · 0.90

Calls 1

_getValidTokenFunction · 0.85

Tested by

no test coverage detected