@xenterprises/fastify-xconfig 1.1.3 → 1.1.5
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/package.json +1 -1
- package/src/auth/portal.js +1 -2
- package/src/xConfig.js +0 -1
package/package.json
CHANGED
package/src/auth/portal.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as jose from "jose";
|
|
2
|
-
import fetch from "node-fetch";
|
|
3
2
|
|
|
4
3
|
export async function setupAuth(fastify, options) {
|
|
5
4
|
if (options.user?.active !== false) {
|
|
@@ -108,7 +107,7 @@ export async function setupAuth(fastify, options) {
|
|
|
108
107
|
return reply.code(400).send({ error: "Email and password required" });
|
|
109
108
|
}
|
|
110
109
|
|
|
111
|
-
// Call Stack Auth API for password sign-in
|
|
110
|
+
// Call Stack Auth API for password sign-in using native fetch
|
|
112
111
|
const response = await fetch(
|
|
113
112
|
`${stackAuthBaseUrl}/auth/password/sign-in`,
|
|
114
113
|
{
|