@ley0x/better-auth-lastfm 1.1.4 → 1.1.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.
|
@@ -17,12 +17,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
|
|
20
|
-
// src/client.ts
|
|
21
|
-
var
|
|
22
|
-
__export(
|
|
20
|
+
// src/client/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
23
|
lastfmClientPlugin: () => lastfmClientPlugin
|
|
24
24
|
});
|
|
25
|
-
module.exports = __toCommonJS(
|
|
25
|
+
module.exports = __toCommonJS(index_exports);
|
|
26
26
|
|
|
27
27
|
// src/client/plugin.ts
|
|
28
28
|
var lastfmClientPlugin = () => {
|
|
@@ -21,18 +21,6 @@ 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
|
-
}
|
|
36
24
|
|
|
37
25
|
/**
|
|
38
26
|
* Last.fm authentication plugin for BetterAuth
|
|
@@ -65,4 +53,4 @@ declare const lastfmClientPlugin: () => {
|
|
|
65
53
|
};
|
|
66
54
|
};
|
|
67
55
|
|
|
68
|
-
export {
|
|
56
|
+
export { lastfmClientPlugin };
|
|
@@ -21,18 +21,6 @@ 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
|
-
}
|
|
36
24
|
|
|
37
25
|
/**
|
|
38
26
|
* Last.fm authentication plugin for BetterAuth
|
|
@@ -65,4 +53,4 @@ declare const lastfmClientPlugin: () => {
|
|
|
65
53
|
};
|
|
66
54
|
};
|
|
67
55
|
|
|
68
|
-
export {
|
|
56
|
+
export { lastfmClientPlugin };
|
package/dist/index.cjs
CHANGED
|
@@ -141,7 +141,9 @@ 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
|
}
|
package/dist/index.js
CHANGED
|
@@ -114,7 +114,9 @@ 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
|
}
|
package/package.json
CHANGED
|
File without changes
|