next-auth-mfelfelani72 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/libs/registerHandler.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
* @Description:
|
|
7
7
|
*/
|
|
8
8
|
export { default as Login } from "./components/Login";
|
|
9
|
-
export { default as
|
|
9
|
+
export { default as Register } from "./components/Register";
|
|
10
10
|
export { loginHandler } from "./libs/loginHandler";
|
|
11
11
|
export { registerHandler } from "./libs/registerHandler";
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
// Components
|
|
9
9
|
export { default as Login } from "./components/Login";
|
|
10
|
-
export { default as
|
|
10
|
+
export { default as Register } from "./components/Register";
|
|
11
11
|
// Server handlers
|
|
12
12
|
export { loginHandler } from "./libs/loginHandler";
|
|
13
13
|
export { registerHandler } from "./libs/registerHandler";
|
|
@@ -20,7 +20,7 @@ export function registerHandler(apiUrl) {
|
|
|
20
20
|
if (body.password !== body.password_confirmation) {
|
|
21
21
|
return NextResponse.json({ message: "Passwords do not match" }, { status: 400 });
|
|
22
22
|
}
|
|
23
|
-
const response = await fetch(`${process.env.API_URL}
|
|
23
|
+
const response = await fetch(`${process.env.API_URL}`, {
|
|
24
24
|
method: "POST",
|
|
25
25
|
headers: { "Content-Type": "application/json" },
|
|
26
26
|
body: JSON.stringify(body),
|