@adminforth/open-signup 2.0.4 → 2.0.6

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.js CHANGED
@@ -150,10 +150,11 @@ export default class OpenSignupPlugin extends AdminForthPlugin {
150
150
  const toReturn = { allowedLogin: true, error: '' };
151
151
  yield this.adminforth.restApi.processLoginCallbacks(adminUser, toReturn, response, extra);
152
152
  if (toReturn.allowedLogin) {
153
- this.adminforth.auth.setAuthCookie({
153
+ yield this.adminforth.auth.setAuthCookie({
154
154
  response,
155
155
  username,
156
- pk: userRecord[this.authResource.columns.find((col) => col.primaryKey).name]
156
+ pk: userRecord[this.authResource.columns.find((col) => col.primaryKey).name],
157
+ extra,
157
158
  });
158
159
  }
159
160
  return toReturn;
package/index.ts CHANGED
@@ -171,12 +171,13 @@ export default class OpenSignupPlugin extends AdminForthPlugin {
171
171
 
172
172
  await this.adminforth.restApi.processLoginCallbacks(adminUser, toReturn, response, extra);
173
173
  if (toReturn.allowedLogin) {
174
- this.adminforth.auth.setAuthCookie({
175
- response,
176
- username,
174
+ await this.adminforth.auth.setAuthCookie({
175
+ response,
176
+ username,
177
177
  pk: userRecord[
178
178
  this.authResource.columns.find((col) => col.primaryKey).name
179
- ]
179
+ ],
180
+ extra,
180
181
  });
181
182
  }
182
183
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/open-signup",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -27,11 +27,11 @@
27
27
  "zod": "^4.3.6"
28
28
  },
29
29
  "peerDependencies": {
30
- "adminforth": "^3.8.2"
30
+ "adminforth": "^3.31.5"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^22.10.7",
34
- "adminforth": "^3.8.2",
34
+ "adminforth": "^3.31.5",
35
35
  "semantic-release": "^24.2.1",
36
36
  "semantic-release-slack-bot": "^4.0.2",
37
37
  "typescript": "^5.7.3"