MCPcopy Create free account
hub / github.com/alamorre/fullstack-chat / onSignup

Function onSignup

client-react/src/authPage.js:19–31  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

17 };
18
19 const onSignup = (e) => {
20 e.preventDefault();
21 axios
22 .post("http://localhost:3001/signup", {
23 username,
24 secret,
25 email,
26 first_name,
27 last_name,
28 })
29 .then((r) => props.onAuth({ ...r.data, secret })) // NOTE: over-ride secret
30 .catch((e) => console.log(JSON.stringify(e.response.data)));
31 };
32
33 return (
34 <div className="login-page">

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected