propro-utils 1.5.38 → 1.5.39
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
|
@@ -369,7 +369,8 @@ class AuthMiddleware {
|
|
|
369
369
|
headers.Authorization = `Bearer ${accessToken}`;
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
-
let formattedAuthUrl = formatRedirectUrl(this.options.authUrl) + path;
|
|
372
|
+
// let formattedAuthUrl = formatRedirectUrl(this.options.authUrl) + path;
|
|
373
|
+
let formattedAuthUrl = formatRedirectUrl('localhost:8182') + path;
|
|
373
374
|
|
|
374
375
|
if (!accessToken) {
|
|
375
376
|
formattedAuthUrl = `${formattedAuthUrl}?clientId=${this.options.clientId}&redirectUri=${this.options.redirectUri}`;
|