@ley0x/better-auth-lastfm 1.1.6 → 1.2.0

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.cjs CHANGED
@@ -147,9 +147,9 @@ function lastfmPlugin(options) {
147
147
  }
148
148
  });
149
149
  }
150
- const session = await ctx.context.internalAdapter.createSession(user.id, ctx);
150
+ const session = await ctx.context.internalAdapter.createSession(user.id);
151
151
  const cookieName = ctx.context.authCookies.sessionToken.name;
152
- const cookieOptions = ctx.context.authCookies.sessionToken.options;
152
+ const cookieOptions = ctx.context.authCookies.sessionToken.attributes;
153
153
  await ctx.setSignedCookie(
154
154
  cookieName,
155
155
  session.token,
package/dist/index.js CHANGED
@@ -120,9 +120,9 @@ function lastfmPlugin(options) {
120
120
  }
121
121
  });
122
122
  }
123
- const session = await ctx.context.internalAdapter.createSession(user.id, ctx);
123
+ const session = await ctx.context.internalAdapter.createSession(user.id);
124
124
  const cookieName = ctx.context.authCookies.sessionToken.name;
125
- const cookieOptions = ctx.context.authCookies.sessionToken.options;
125
+ const cookieOptions = ctx.context.authCookies.sessionToken.attributes;
126
126
  await ctx.setSignedCookie(
127
127
  cookieName,
128
128
  session.token,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ley0x/better-auth-lastfm",
3
- "version": "1.1.6",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "description": "Last.fm authentication plugin for BetterAuth",
6
6
  "main": "dist/index.cjs",
@@ -44,16 +44,16 @@
44
44
  "better-auth": "^1.x.x"
45
45
  },
46
46
  "dependencies": {
47
- "zod": "^3.25.76"
47
+ "zod": "^4.3.6"
48
48
  },
49
49
  "devDependencies": {
50
- "@eslint/js": "^9.33.0",
51
- "@types/node": "^20.19.10",
50
+ "@eslint/js": "^9.39.2",
51
+ "@types/node": "^25.0.10",
52
52
  "better-auth": "latest",
53
- "eslint": "^9.33.0",
54
- "tsup": "^8.5.0",
55
- "typescript": "^5.9.2",
56
- "typescript-eslint": "^8.39.1",
53
+ "eslint": "^9.39.2",
54
+ "tsup": "^8.5.1",
55
+ "typescript": "^5.9.3",
56
+ "typescript-eslint": "^8.53.1",
57
57
  "vitest": "^1.6.1"
58
58
  },
59
59
  "engines": {