@ley0x/better-auth-lastfm 1.1.5 → 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
@@ -141,13 +141,15 @@ function lastfmPlugin(options) {
141
141
  accountId: username,
142
142
  providerId: "lastfm",
143
143
  userId: user.id,
144
- accessToken: sessionKey
144
+ accessToken: sessionKey,
145
+ createdAt: /* @__PURE__ */ new Date(),
146
+ updatedAt: /* @__PURE__ */ new Date()
145
147
  }
146
148
  });
147
149
  }
148
- const session = await ctx.context.internalAdapter.createSession(user.id, ctx);
150
+ const session = await ctx.context.internalAdapter.createSession(user.id);
149
151
  const cookieName = ctx.context.authCookies.sessionToken.name;
150
- const cookieOptions = ctx.context.authCookies.sessionToken.options;
152
+ const cookieOptions = ctx.context.authCookies.sessionToken.attributes;
151
153
  await ctx.setSignedCookie(
152
154
  cookieName,
153
155
  session.token,
package/dist/index.js CHANGED
@@ -114,13 +114,15 @@ function lastfmPlugin(options) {
114
114
  accountId: username,
115
115
  providerId: "lastfm",
116
116
  userId: user.id,
117
- accessToken: sessionKey
117
+ accessToken: sessionKey,
118
+ createdAt: /* @__PURE__ */ new Date(),
119
+ updatedAt: /* @__PURE__ */ new Date()
118
120
  }
119
121
  });
120
122
  }
121
- const session = await ctx.context.internalAdapter.createSession(user.id, ctx);
123
+ const session = await ctx.context.internalAdapter.createSession(user.id);
122
124
  const cookieName = ctx.context.authCookies.sessionToken.name;
123
- const cookieOptions = ctx.context.authCookies.sessionToken.options;
125
+ const cookieOptions = ctx.context.authCookies.sessionToken.attributes;
124
126
  await ctx.setSignedCookie(
125
127
  cookieName,
126
128
  session.token,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ley0x/better-auth-lastfm",
3
- "version": "1.1.5",
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": {