@aiveth/nextjs 0.12.0 → 0.13.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/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
 
3
- ## 0.12.0 — unreleased
3
+ ## 0.13.0 — unreleased
4
+
5
+ - `<SignIn />` and `<SignUp />` in `@aiveth/nextjs/client`: the same ready-made box as `@aiveth/react` (one shared file), finishing through `/auth/sign-in-here` and `/auth/callback`.
6
+
7
+ ## 0.12.0 — 2026-11-30
4
8
 
5
9
  - `signInHere` in `@aiveth/nextjs/client`: the same steps as `@aiveth/react` (one shared file). The proxy's new `/auth/sign-in-here` keeps the attempt's PKCE verifier in the sealed sign-in cookie; the code the steps end with goes to `/auth/callback`, which signs the person in with your app's secret.
6
10
 
package/README.md CHANGED
@@ -94,6 +94,19 @@ if (next.status === 'needs_aiveth') flow.continueOnAiveth();
94
94
 
95
95
  The same steps and names as `@aiveth/react` (`signUp`, `invitation`, `sendResetCode`, …).
96
96
 
97
+ ## A ready-made sign-in box
98
+
99
+ ```tsx
100
+ 'use client';
101
+ import { SignIn, SignUp } from '@aiveth/nextjs/client';
102
+
103
+ <SignIn returnTo="/dashboard" />
104
+ ```
105
+
106
+ The same box as `@aiveth/react`: every step, your organization's look and the person's language,
107
+ `invitation` and `locale`. It finishes through `/auth/callback`, so the session is your app's
108
+ cookie. "Secured by Aiveth" shows on the Free and Pro plans only.
109
+
97
110
  ## Sign in in your organization's own look
98
111
 
99
112
  ```tsx
package/dist/box.d.ts ADDED
@@ -0,0 +1,66 @@
1
+ import { type CSSProperties } from 'react';
2
+ import { type HereFlow, type Step } from './here.js';
3
+ /** What Aiveth tells the box: the organization's name and look, the words, the badge. */
4
+ export interface BoxSettings {
5
+ name: string;
6
+ lang: string;
7
+ dir: 'ltr' | 'rtl';
8
+ words: Record<string, string>;
9
+ look: {
10
+ custom: boolean;
11
+ radius?: number;
12
+ button_style?: 'filled' | 'outlined';
13
+ appearance?: 'system' | 'light' | 'dark';
14
+ font?: {
15
+ family: string;
16
+ url: string | null;
17
+ };
18
+ colours?: Record<'light' | 'dark', {
19
+ page: string;
20
+ button: string;
21
+ button_text: string;
22
+ link: string;
23
+ }>;
24
+ more_colours?: Record<'light' | 'dark', {
25
+ card: string;
26
+ input: string;
27
+ border: string;
28
+ button_hover: string;
29
+ }>;
30
+ logo?: string | null;
31
+ logo_dark?: string | null;
32
+ };
33
+ secured_by: boolean;
34
+ sign_up: boolean;
35
+ }
36
+ /** How a package plugs in: where the settings are, how a flow starts, how a provider opens. */
37
+ export interface BoxSetup {
38
+ settings: (lang?: string) => Promise<BoxSettings>;
39
+ start: (email: string) => Promise<{
40
+ flow: HereFlow;
41
+ step: Step;
42
+ }>;
43
+ signUp: (email: string) => Promise<{
44
+ flow: HereFlow;
45
+ step: Step;
46
+ }>;
47
+ invitation: (token: string) => Promise<{
48
+ flow: HereFlow;
49
+ step: Step;
50
+ }>;
51
+ /** Google, Microsoft, GitHub or single sign-on: a redirect to that way in. */
52
+ withProvider: (connection: string, email: string) => void;
53
+ onSignedIn: (step: Step) => void;
54
+ }
55
+ export interface BoxProps {
56
+ /** `ui_locales`-like, e.g. `'hi'` or `'ta en'`; the browser's language when left out. */
57
+ locale?: string;
58
+ /** An invitation's token (your sign-in page's `?invitation=`); read from the address when left out. */
59
+ invitation?: string;
60
+ className?: string;
61
+ style?: CSSProperties;
62
+ }
63
+ export declare function SignInBox({ setup, mode, locale, invitation, className, style }: BoxProps & {
64
+ setup: BoxSetup;
65
+ mode: 'sign-in' | 'sign-up';
66
+ }): import("react").JSX.Element | null;
package/dist/box.js ADDED
@@ -0,0 +1,166 @@
1
+ 'use client';
2
+ import { Fragment as _Fragment, jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
3
+ /* The ready-made sign-in on your own page (`<SignIn />`, `<SignUp />`; Clerk's components): every
4
+ * step of Aiveth's sign-in API (`here.ts`), in your organization's look, in the person's language
5
+ * — the sign-in card's own words, from Aiveth (`/v1/sign-in/{client_id}/box`) — with "Secured by
6
+ * Aiveth" below on Free and Pro. The same file is in `@aiveth/react` and `@aiveth/nextjs`. */
7
+ import { useEffect, useRef, useState } from 'react';
8
+ import { StepRefused } from './here.js';
9
+ const AIVETH_LOOK = {
10
+ light: { page: '#ffffff', button: '#1d4ed8', button_text: '#ffffff', link: '#1d4ed8', card: '#ffffff', input: '#ffffff', border: '#d4d4d8', text: '#18181b', muted: '#52525b' },
11
+ dark: { page: '#09090b', button: '#3b82f6', button_text: '#ffffff', link: '#93c5fd', card: '#18181b', input: '#09090b', border: '#3f3f46', text: '#fafafa', muted: '#a1a1aa' },
12
+ };
13
+ const PROVIDERS = { google: 'Google', microsoft: 'Microsoft', github: 'GitHub' };
14
+ function dark(look) {
15
+ if (look.appearance === 'dark')
16
+ return true;
17
+ if (look.appearance === 'light')
18
+ return false;
19
+ return typeof window !== 'undefined' && window.matchMedia?.('(prefers-color-scheme: dark)').matches === true;
20
+ }
21
+ function palette(look) {
22
+ const mode = dark(look) ? 'dark' : 'light';
23
+ return { ...AIVETH_LOOK[mode], ...(look.colours?.[mode] ?? {}), ...(look.more_colours?.[mode] ?? {}) };
24
+ }
25
+ /** A sentence in the person's language, its `{values}` filled in. */
26
+ function say(words, text, values = {}) {
27
+ return (words[text] ?? text).replace(/\{(\w+)\}/g, (_m, k) => values[k] ?? `{${k}}`);
28
+ }
29
+ /** A sentence with a link (or links) in its middle: the translation decides where it sits. */
30
+ function sayAround(words, text, slot, node, values = {}) {
31
+ const [before, after = ''] = say(words, text, { ...values, [slot]: '\u0000' }).split('\u0000');
32
+ return _jsxs(_Fragment, { children: [before, node, after] });
33
+ }
34
+ function inviteFromAddress() {
35
+ if (typeof window === 'undefined')
36
+ return '';
37
+ return new URLSearchParams(window.location.search).get('invitation') ?? '';
38
+ }
39
+ export function SignInBox({ setup, mode, locale, invitation, className, style }) {
40
+ const [settings, setSettings] = useState(null);
41
+ const [step, setStep] = useState(null);
42
+ const [email, setEmail] = useState('');
43
+ const [asSignUp, setAsSignUp] = useState(mode === 'sign-up');
44
+ const [problem, setProblem] = useState('');
45
+ const [busy, setBusy] = useState(false);
46
+ const flow = useRef(null);
47
+ const started = useRef(false);
48
+ useEffect(() => {
49
+ let live = true;
50
+ setup.settings(locale).then((s) => { if (live)
51
+ setSettings(s); }).catch(() => { if (live)
52
+ setProblem('Sign-in is not available here.'); });
53
+ return () => { live = false; };
54
+ }, [setup, locale]);
55
+ const run = async (work) => {
56
+ setBusy(true);
57
+ setProblem('');
58
+ try {
59
+ const got = await work();
60
+ const next = 'flow' in got ? (flow.current = got.flow, got.step) : got;
61
+ if (next.status === 'needs_aiveth') {
62
+ flow.current?.continueOnAiveth();
63
+ return;
64
+ }
65
+ if (next.status === 'signed_in') {
66
+ setup.onSignedIn(next);
67
+ return;
68
+ }
69
+ if (next.status === 'refused')
70
+ setProblem(next.errorDescription ?? next.error ?? '');
71
+ if (next.status === 'needs_first_factor')
72
+ setAsSignUp(false); // an account already: its sign-in
73
+ if (next.email)
74
+ setEmail(next.email);
75
+ setStep(next);
76
+ }
77
+ catch (e) {
78
+ setProblem(e instanceof StepRefused ? e.message : 'Something went wrong. Try again.');
79
+ }
80
+ finally {
81
+ setBusy(false);
82
+ }
83
+ };
84
+ useEffect(() => {
85
+ const token = invitation ?? inviteFromAddress();
86
+ if (!settings || !token || started.current)
87
+ return;
88
+ started.current = true;
89
+ void run(() => setup.invitation(token));
90
+ // eslint-disable-next-line react-hooks/exhaustive-deps -- once, when the settings arrive
91
+ }, [settings]);
92
+ if (!settings)
93
+ return problem ? _jsx("p", { role: "alert", children: problem }) : null;
94
+ const w = settings.words;
95
+ const c = palette(settings.look);
96
+ const radius = settings.look.radius ?? 10;
97
+ const outlined = settings.look.button_style === 'outlined';
98
+ const font = settings.look.font?.family;
99
+ const s = {
100
+ card: { boxSizing: 'border-box', width: '100%', maxWidth: 400, padding: 28, background: c.card, color: c.text, border: `1px solid ${c.border}`, borderRadius: radius + 4, fontFamily: font ? `'${font}', system-ui, sans-serif` : 'system-ui, sans-serif', ...style },
101
+ title: { margin: '0 0 16px', fontSize: 20, fontWeight: 600, textAlign: 'center' },
102
+ label: { display: 'block', fontSize: 14, fontWeight: 500, margin: '12px 0 6px' },
103
+ input: { boxSizing: 'border-box', width: '100%', minHeight: 44, padding: '0 12px', background: c.input, color: c.text, border: `1px solid ${c.border}`, borderRadius: radius, fontSize: 16, fontFamily: 'inherit' },
104
+ button: { width: '100%', minHeight: 44, marginTop: 16, border: outlined ? `1px solid ${c.button}` : 'none', borderRadius: radius, background: outlined ? 'transparent' : c.button, color: outlined ? c.button : c.button_text, fontSize: 15, fontWeight: 600, cursor: 'pointer', fontFamily: 'inherit' },
105
+ quiet: { width: '100%', minHeight: 44, marginTop: 10, background: 'transparent', color: c.text, border: `1px solid ${c.border}`, borderRadius: radius, fontSize: 15, cursor: 'pointer', fontFamily: 'inherit' },
106
+ link: { background: 'none', border: 'none', padding: 0, color: c.link, cursor: 'pointer', fontSize: 14, fontFamily: 'inherit' },
107
+ note: { fontSize: 14, color: c.muted, margin: '8px 0 0', textAlign: 'center' },
108
+ alert: { fontSize: 14, color: '#dc2626', margin: '12px 0 0' },
109
+ foot: { fontSize: 12, color: c.muted, textAlign: 'center', margin: '18px 0 0' },
110
+ };
111
+ const logo = dark(settings.look) ? settings.look.logo_dark ?? settings.look.logo : settings.look.logo;
112
+ const field = (id, label, props) => (_jsxs(_Fragment, { children: [_jsx("label", { htmlFor: id, style: s.label, children: label }), _jsx("input", { id: id, name: id, required: true, style: s.input, ...props })] }));
113
+ const submit = (work) => (e) => {
114
+ e.preventDefault();
115
+ const form = new FormData(e.currentTarget);
116
+ void run(() => work(form));
117
+ };
118
+ const text = (form, key) => String(form.get(key) ?? '');
119
+ const who = (_jsxs("p", { style: s.note, children: [say(w, 'Signing in as {email}', { email }), " \u00B7", ' ', _jsx("button", { type: "button", style: s.link, onClick: () => { setStep(null); flow.current = null; }, children: say(w, 'Change') })] }));
120
+ let body;
121
+ const status = step?.status;
122
+ if (!step) {
123
+ body = (_jsxs("form", { onSubmit: submit((f) => { const typed = text(f, 'email'); setEmail(typed); return asSignUp ? setup.signUp(typed) : setup.start(typed); }), children: [field('email', say(w, 'Work email'), { type: 'email', autoComplete: 'username', defaultValue: email }), _jsx("button", { type: "submit", style: s.button, disabled: busy, children: say(w, 'Continue') }), settings.sign_up && (asSignUp
124
+ ? _jsx("p", { style: s.note, children: _jsx("button", { type: "button", style: s.link, onClick: () => setAsSignUp(false), children: say(w, 'Back to sign in') }) })
125
+ : _jsx("p", { style: s.note, children: sayAround(w, 'New here? {link}', 'link', _jsx("button", { type: "button", style: s.link, onClick: () => setAsSignUp(true), children: say(w, 'Create an account') })) }))] }));
126
+ }
127
+ else if (status === 'needs_first_factor') {
128
+ const ways = step.ways ?? [];
129
+ body = (_jsxs(_Fragment, { children: [who, ways.includes('password') && (_jsxs("form", { onSubmit: submit((f) => flow.current.password(text(f, 'password'))), children: [field('password', say(w, 'Password'), { type: 'password', autoComplete: 'current-password', autoFocus: true }), _jsx("p", { style: { ...s.note, textAlign: 'end' }, children: _jsx("button", { type: "button", style: s.link, onClick: () => void run(() => flow.current.sendResetCode()), children: say(w, 'Forgot password?') }) }), _jsx("button", { type: "submit", style: s.button, disabled: busy, children: say(w, 'Continue') })] })), ways.includes('email_code') && _jsx("button", { type: "button", style: s.quiet, disabled: busy, onClick: () => void run(() => flow.current.sendEmailCode()), children: say(w, 'Email me a code') }), ways.filter((x) => PROVIDERS[x]).map((x) => (_jsx("button", { type: "button", style: s.quiet, onClick: () => setup.withProvider(x, email), children: say(w, 'Continue with {name}', { name: PROVIDERS[x] ?? x }) }, x))), ways.includes('sso') && _jsx("button", { type: "button", style: s.quiet, onClick: () => setup.withProvider('sso', email), children: say(w, 'Single sign-on (SSO)') })] }));
130
+ }
131
+ else if (status === 'needs_email_code' || status === 'needs_reset_code') {
132
+ const signUp = asSignUp && status === 'needs_email_code';
133
+ body = (_jsxs("form", { onSubmit: submit((f) => {
134
+ const code = text(f, 'code');
135
+ if (status === 'needs_reset_code')
136
+ return flow.current.verifyResetCode(code);
137
+ return signUp ? flow.current.verifySignUpCode(code) : flow.current.verifyEmailCode(code);
138
+ }), children: [_jsx("p", { style: s.note, children: say(w, 'We sent a code to {email}. It ends in 10 minutes.', { email }) }), field('code', say(w, '8-digit code'), { inputMode: 'numeric', autoComplete: 'one-time-code', autoFocus: true }), _jsx("button", { type: "submit", style: s.button, disabled: busy, children: say(w, 'Continue') })] }));
139
+ }
140
+ else if (status === 'needs_second_factor') {
141
+ body = (_jsxs("form", { onSubmit: submit((f) => flow.current.secondFactor(text(f, 'code'))), children: [who, field('code', say(w, 'Code from your app, or a recovery code'), { autoComplete: 'one-time-code', autoFocus: true }), _jsx("button", { type: "submit", style: s.button, disabled: busy, children: say(w, 'Continue') })] }));
142
+ }
143
+ else if (status === 'needs_new_password') {
144
+ body = (_jsxs("form", { onSubmit: submit((f) => flow.current.setNewPassword(text(f, 'password'))), children: [field('password', say(w, 'New password'), { type: 'password', autoComplete: 'new-password', autoFocus: true }), _jsx("button", { type: "submit", style: s.button, disabled: busy, children: say(w, 'Continue') })] }));
145
+ }
146
+ else if (status === 'needs_details') {
147
+ body = (_jsxs("form", { onSubmit: submit((f) => flow.current.details({ firstName: text(f, 'first_name'), lastName: text(f, 'last_name'), password: text(f, 'password') })), children: [email && _jsx("p", { style: s.note, children: email }), field('first_name', say(w, 'First name'), { autoComplete: 'given-name', autoFocus: true }), _jsx("label", { htmlFor: "last_name", style: s.label, children: say(w, 'Last name') }), _jsx("input", { id: "last_name", name: "last_name", style: s.input, autoComplete: "family-name" }), field('password', say(w, 'Password'), { type: 'password', autoComplete: 'new-password' }), _jsx("button", { type: "submit", style: s.button, disabled: busy, children: say(w, 'Continue') })] }));
148
+ }
149
+ else if (status === 'needs_legal_acceptance') {
150
+ const links = [[step.termsUrl, 'Terms of Service'], [step.privacyUrl, 'Privacy Policy']].filter(([u]) => u);
151
+ body = (_jsxs("form", { onSubmit: submit(() => flow.current.acceptTerms()), children: [_jsxs("label", { style: { display: 'flex', gap: 8, alignItems: 'flex-start', fontSize: 14 }, children: [_jsx("input", { type: "checkbox", required: true }), _jsx("span", { children: sayAround(w, "I agree to {company}'s {links}", 'links', links.map(([u, t], i) => _jsxs("span", { children: [i ? ', ' : '', _jsx("a", { href: u, target: "_blank", rel: "noopener noreferrer", style: { color: c.link }, children: say(w, t) })] }, u)), { company: settings.name }) })] }), _jsx("button", { type: "submit", style: s.button, disabled: busy, children: say(w, 'Continue') })] }));
152
+ }
153
+ else if (status === 'waiting') {
154
+ body = _jsx("p", { style: s.note, children: say(w, "Request sent. If an admin approves it, you'll get an invitation by email.") });
155
+ }
156
+ else {
157
+ body = _jsx("button", { type: "button", style: s.button, onClick: () => { setStep(null); flow.current = null; }, children: say(w, 'Back to sign in') });
158
+ }
159
+ const heading = status === 'needs_details' && step?.reason === 'invited' ? say(w, 'Join {name}', { name: settings.name })
160
+ : status === 'needs_legal_acceptance' ? say(w, 'Before you continue')
161
+ : status === 'needs_new_password' ? say(w, 'Choose a new password')
162
+ : asSignUp ? say(w, 'Create your account for {name}', { name: settings.name })
163
+ : say(w, 'Sign in to {name}', { name: settings.name });
164
+ const fontUrl = settings.look.font?.url;
165
+ return (_jsxs("div", { className: className, style: s.card, lang: settings.lang, dir: settings.dir, children: [font && fontUrl && _jsx("style", { children: `@font-face{font-family:'${font.replace(/'/g, '')}';src:url('${fontUrl.replace(/'/g, '')}') format('woff2');font-display:swap}` }), logo && _jsx("img", { src: logo, alt: settings.name, style: { display: 'block', maxHeight: 40, margin: '0 auto 16px' } }), _jsx("h1", { style: s.title, children: heading }), body, problem && _jsx("p", { role: "alert", style: s.alert, children: problem }), settings.secured_by && _jsx("p", { style: s.foot, children: say(w, 'Secured by {name}', { name: 'Aiveth' }) })] }));
166
+ }
package/dist/client.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { type CSSProperties, type ReactNode } from 'react';
2
+ import { type BoxProps } from './box.js';
2
3
  import { HereFlow, type Step } from './here.js';
3
4
  import type { User } from './session.js';
4
5
  interface UseUser {
@@ -47,6 +48,17 @@ export declare const signInHere: {
47
48
  }>;
48
49
  };
49
50
  export { HereFlow, StepRefused, type Step, type StepStatus } from './here.js';
51
+ /** The ready-made sign-in on your own page (turn on "Sign-in on your page" for the app in
52
+ * Aiveth): every step, in your organization's look and the person's language, "Secured by
53
+ * Aiveth" below on Free and Pro. Signed in, the browser goes through `/auth/callback` to `returnTo`. */
54
+ export declare function SignIn({ returnTo, ...props }: BoxProps & {
55
+ returnTo?: string;
56
+ }): import("react").JSX.Element;
57
+ /** `<SignIn />` opening on sign-up, where your organization lets people join from its apps. */
58
+ export declare function SignUp({ returnTo, ...props }: BoxProps & {
59
+ returnTo?: string;
60
+ }): import("react").JSX.Element;
61
+ export { SignInBox, type BoxProps, type BoxSettings, type BoxSetup } from './box.js';
50
62
  /** What a sign-in link may ask of Aiveth — the same names as `@aiveth/react`'s `signIn`. */
51
63
  export interface SignInLinkOptions {
52
64
  returnTo?: string;
package/dist/client.js CHANGED
@@ -2,7 +2,8 @@
2
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  /* The person in the browser. The profile comes from `/auth/session` (the cookie is HttpOnly: no
4
4
  * token ever reaches the browser). Sign in and out are links to the proxy's routes. */
5
- import { createContext, useCallback, useContext, useEffect, useState } from 'react';
5
+ import { createContext, useCallback, useContext, useEffect, useMemo, useState } from 'react';
6
+ import { SignInBox } from './box.js';
6
7
  import { BrandedButton, useBrandLook } from './brand.js';
7
8
  import { ROUTES } from './config.js';
8
9
  import { HereFlow, StepRefused } from './here.js';
@@ -74,6 +75,44 @@ async function begun(where, first) {
74
75
  return { flow, step: await first(flow, set.request) };
75
76
  }
76
77
  export { HereFlow, StepRefused } from './here.js';
78
+ /** What `/auth/sign-in-here` tells the browser — Aiveth's address and this app's client id. */
79
+ async function where() {
80
+ const res = await fetch(ROUTES.signInHere, { credentials: 'same-origin', cache: 'no-store' });
81
+ if (!res.ok)
82
+ throw new StepRefused(res.status, 'Sign-in on this page is not set up.');
83
+ return (await res.json());
84
+ }
85
+ function boxSetup(returnTo) {
86
+ return {
87
+ settings: async (lang = '') => {
88
+ const { baseUrl, clientId } = await where();
89
+ const res = await fetch(`${baseUrl}/v1/sign-in/${encodeURIComponent(clientId)}/box?${new URLSearchParams({ lang })}`);
90
+ if (!res.ok)
91
+ throw new StepRefused(res.status, 'Sign-in on this page is not turned on for the app.');
92
+ return (await res.json());
93
+ },
94
+ start: (email) => signInHere.start({ email, returnTo }),
95
+ signUp: (email) => signInHere.signUp({ email, returnTo }),
96
+ invitation: (token) => signInHere.invitation(token, { returnTo }),
97
+ withProvider: (connection, email) => {
98
+ window.location.assign(signInHref({ connection: connection, loginHint: email || undefined, returnTo }));
99
+ },
100
+ onSignedIn: () => undefined, // the browser is already on its way to /auth/callback
101
+ };
102
+ }
103
+ /** The ready-made sign-in on your own page (turn on "Sign-in on your page" for the app in
104
+ * Aiveth): every step, in your organization's look and the person's language, "Secured by
105
+ * Aiveth" below on Free and Pro. Signed in, the browser goes through `/auth/callback` to `returnTo`. */
106
+ export function SignIn({ returnTo, ...props }) {
107
+ const setup = useMemo(() => boxSetup(returnTo), [returnTo]);
108
+ return _jsx(SignInBox, { setup: setup, mode: "sign-in", ...props });
109
+ }
110
+ /** `<SignIn />` opening on sign-up, where your organization lets people join from its apps. */
111
+ export function SignUp({ returnTo, ...props }) {
112
+ const setup = useMemo(() => boxSetup(returnTo), [returnTo]);
113
+ return _jsx(SignInBox, { setup: setup, mode: "sign-up", ...props });
114
+ }
115
+ export { SignInBox } from './box.js';
77
116
  /** `/auth/login` with these options (the proxy passes them to Aiveth). */
78
117
  export function signInHref({ returnTo, connection, loginHint, locale, screenHint } = {}) {
79
118
  const q = new URLSearchParams();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiveth/nextjs",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "Official Aiveth SDK for Next.js: sign in on Aiveth's page, an encrypted session cookie, and the signed-in user on the server and in the browser.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Aiveth team",