MCPcopy Create free account
hub / github.com/simstudioai/sim / authAs

Function authAs

apps/sim/app/api/table/[tableId]/rows/route.test.ts:75–81  ·  view source on GitHub ↗
(authType: 'session' | 'internal_jwt')

Source from the content-addressed store, hash-verified

73}
74
75function authAs(authType: 'session' | 'internal_jwt') {
76 hybridAuthMockFns.mockCheckSessionOrInternalAuth.mockResolvedValue({
77 success: true,
78 userId: 'user-1',
79 authType,
80 })
81}
82
83function callPost(body: Record<string, unknown>) {
84 const req = new NextRequest('http://localhost:3000/api/table/tbl_1/rows', {

Callers 1

route.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected