MCPcopy Create free account
hub / github.com/ForgeAILab/forge / register

Function register

web/src/api/auth.ts:32–37  ·  view source on GitHub ↗
(body: RegisterRequest)

Source from the content-addressed store, hash-verified

30}
31
32export function register(body: RegisterRequest): Promise<AuthResponse> {
33 return authFetch<AuthResponse>('/auth/register', {
34 method: 'POST',
35 body: JSON.stringify(body),
36 })
37}
38
39export function login(body: LoginRequest): Promise<AuthResponse> {
40 return authFetch<AuthResponse>('/auth/login', {

Callers 1

handleSubmitFunction · 0.90

Calls 1

authFetchFunction · 0.85

Tested by

no test coverage detected