@meistrari/auth-core 3.4.0 → 3.5.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.d.mts +690 -2062
- package/dist/index.d.ts +690 -2062
- package/dist/index.mjs +5 -3
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -21,7 +21,7 @@ function isTokenExpired(token, expiresInMs) {
|
|
|
21
21
|
return nowInSeconds > expirationTime;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
const version = "3.
|
|
24
|
+
const version = "3.5.0";
|
|
25
25
|
|
|
26
26
|
function parsedEnumValues(schema) {
|
|
27
27
|
return Object.fromEntries(
|
|
@@ -2578,12 +2578,14 @@ class UserService {
|
|
|
2578
2578
|
});
|
|
2579
2579
|
}
|
|
2580
2580
|
/**
|
|
2581
|
-
* Unlinks
|
|
2581
|
+
* Unlinks an account from the current user. Requires an AAL2 session (gated
|
|
2582
2582
|
* server-side). The server refuses to remove the user's last account.
|
|
2583
|
+
*
|
|
2584
|
+
* @param params.accountId - The account's `id` from {@link listAccounts}, not
|
|
2585
|
+
* the provider's account identifier
|
|
2583
2586
|
*/
|
|
2584
2587
|
async unlinkAccount(params) {
|
|
2585
2588
|
return await this.client.unlinkAccount({
|
|
2586
|
-
providerId: params.providerId,
|
|
2587
2589
|
accountId: params.accountId
|
|
2588
2590
|
});
|
|
2589
2591
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meistrari/auth-core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"docs": "typedoc"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@better-auth/api-key": "1.
|
|
22
|
-
"@better-auth/sso": "1.
|
|
23
|
-
"better-auth": "1.
|
|
24
|
-
"jose": "6.
|
|
25
|
-
"zod": "4.
|
|
21
|
+
"@better-auth/api-key": "1.7.14",
|
|
22
|
+
"@better-auth/sso": "1.7.14",
|
|
23
|
+
"better-auth": "1.7.14",
|
|
24
|
+
"jose": "6.2.14",
|
|
25
|
+
"zod": "4.6.7"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "latest",
|