@8wave/ai-elements 0.126.0-beta.5 → 0.126.0-beta.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.
- package/dist/ai-elements.es.js +376 -359
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/apps/web-component/src/composables/useChatbotAuth.d.ts +18 -1
- package/dist-vue/apps/web-component/src/utils/cookie.d.ts +3 -3
- package/dist-vue/composables.js +108 -91
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/packages/auth/src/anonymous-reauth-plugin.d.ts +8 -6
- package/package.json +1 -1
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { BetterAuthPlugin } from 'better-auth';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* Lets an anonymous user come back after its session expired, so the widget
|
|
4
|
+
* does not start a new anonymous user and lose the chats of the previous one.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
6
|
+
* The widget proves it held a session of that user with a proof the backend
|
|
7
|
+
* signed and handed to that session (`/anonymous-reauth/proof`). The id alone
|
|
8
|
+
* is not enough: it leaves the visitor's browser (the host page receives it
|
|
9
|
+
* on sign-in), and until 2026-11-05 whoever knew it took the session, the
|
|
10
|
+
* chats, and could carry them into an account of their own. Only anonymous
|
|
11
|
+
* users come back this way.
|
|
10
12
|
*/
|
|
11
13
|
export declare function anonymousReauth(): BetterAuthPlugin;
|