@ley0x/better-auth-lastfm 1.1.2 → 1.1.3

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.
@@ -23,6 +23,8 @@ __export(client_exports, {
23
23
  lastfmClientPlugin: () => lastfmClientPlugin
24
24
  });
25
25
  module.exports = __toCommonJS(client_exports);
26
+
27
+ // src/client/plugin.ts
26
28
  var lastfmClientPlugin = () => {
27
29
  return {
28
30
  id: "lastfm",
@@ -21,6 +21,18 @@ interface LastfmPluginOptions {
21
21
  */
22
22
  redirectTo?: string;
23
23
  }
24
+ interface LastfmSession {
25
+ key: string;
26
+ name: string;
27
+ subscriber: number;
28
+ }
29
+ interface LastfmAuthResponse {
30
+ session: LastfmSession;
31
+ }
32
+ interface LastfmUserProfile {
33
+ username: string;
34
+ sessionKey: string;
35
+ }
24
36
 
25
37
  /**
26
38
  * Last.fm authentication plugin for BetterAuth
@@ -53,4 +65,4 @@ declare const lastfmClientPlugin: () => {
53
65
  };
54
66
  };
55
67
 
56
- export { lastfmClientPlugin };
68
+ export { type LastfmAuthResponse, type LastfmPluginOptions, type LastfmSession, type LastfmUserProfile, lastfmClientPlugin };
@@ -21,6 +21,18 @@ interface LastfmPluginOptions {
21
21
  */
22
22
  redirectTo?: string;
23
23
  }
24
+ interface LastfmSession {
25
+ key: string;
26
+ name: string;
27
+ subscriber: number;
28
+ }
29
+ interface LastfmAuthResponse {
30
+ session: LastfmSession;
31
+ }
32
+ interface LastfmUserProfile {
33
+ username: string;
34
+ sessionKey: string;
35
+ }
24
36
 
25
37
  /**
26
38
  * Last.fm authentication plugin for BetterAuth
@@ -53,4 +65,4 @@ declare const lastfmClientPlugin: () => {
53
65
  };
54
66
  };
55
67
 
56
- export { lastfmClientPlugin };
68
+ export { type LastfmAuthResponse, type LastfmPluginOptions, type LastfmSession, type LastfmUserProfile, lastfmClientPlugin };
@@ -1,4 +1,4 @@
1
- // src/client.ts
1
+ // src/client/plugin.ts
2
2
  var lastfmClientPlugin = () => {
3
3
  return {
4
4
  id: "lastfm",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ley0x/better-auth-lastfm",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "type": "module",
5
5
  "description": "Last.fm authentication plugin for BetterAuth",
6
6
  "main": "dist/index.cjs",