propro-utils 1.5.38 → 1.5.40
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.
|
@@ -106,14 +106,12 @@ const checkIfUserExists = async accountId => {
|
|
|
106
106
|
accountId
|
|
107
107
|
);
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
return await userSchema.create({
|
|
110
110
|
accountId,
|
|
111
111
|
id: uuidv4(),
|
|
112
112
|
verified: false,
|
|
113
113
|
userGlobalStyles: userGlobalStyles._id,
|
|
114
114
|
});
|
|
115
|
-
|
|
116
|
-
return user;
|
|
117
115
|
} catch (error) {
|
|
118
116
|
console.error('Error in checkIfUserExists:', error);
|
|
119
117
|
throw new Error('Failed to get or create user');
|
package/package.json
CHANGED
package/src/server/index.js
CHANGED
|
@@ -228,7 +228,7 @@ class AuthMiddleware {
|
|
|
228
228
|
};
|
|
229
229
|
|
|
230
230
|
refreshTokens = async refreshToken => {
|
|
231
|
-
const formattedAuthUrl = formatRedirectUrl(
|
|
231
|
+
const formattedAuthUrl = formatRedirectUrl('localhost:8182');
|
|
232
232
|
return axios.post(
|
|
233
233
|
`${formattedAuthUrl}/api/v1/auth/refreshTokens`,
|
|
234
234
|
{ refreshToken },
|