@aiveth/nextjs 0.10.0 → 0.11.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 +5 -0
- package/dist/client.d.ts +1 -1
- package/dist/handlers.js +1 -0
- package/dist/oidc.d.ts +1 -0
- package/dist/oidc.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.11.0 — unreleased
|
|
4
|
+
|
|
5
|
+
- `/auth/login` passes `invitation` on to Aiveth. Set your app's sign-in page to `https://your-app/auth/login` in the Aiveth console, and invitations made for the app work with no code of yours.
|
|
6
|
+
- `loginHint` now opens Aiveth's page on that address's ways in, skipping the address screen.
|
|
7
|
+
|
|
3
8
|
## 0.10.0 — 2026-11-28
|
|
4
9
|
|
|
5
10
|
- `/auth/login` passes `connection`, `login_hint`, `ui_locales` and `screen_hint=sign-up` to Aiveth (`login_hint` was sent before but Aiveth ignored it; it now fills in the address). `<SignInButton>` / `<AivethButton>` take the same options as `@aiveth/react`; `signInHref()` builds the link.
|
package/dist/client.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export interface SignInLinkOptions {
|
|
|
23
23
|
returnTo?: string;
|
|
24
24
|
/** Straight to Google, Microsoft, GitHub or your single sign-on — when your organization has it on. */
|
|
25
25
|
connection?: 'google' | 'microsoft' | 'github' | 'sso';
|
|
26
|
-
/** The address
|
|
26
|
+
/** The address you already know: Aiveth's page opens on its ways in. */
|
|
27
27
|
loginHint?: string;
|
|
28
28
|
/** The sign-in page's language, e.g. `'hi'`. */
|
|
29
29
|
locale?: string;
|
package/dist/handlers.js
CHANGED
|
@@ -26,6 +26,7 @@ export async function login(req, c) {
|
|
|
26
26
|
loginHint: req.nextUrl.searchParams.get('login_hint') ?? undefined,
|
|
27
27
|
locale: req.nextUrl.searchParams.get('ui_locales') ?? undefined,
|
|
28
28
|
screenHint: req.nextUrl.searchParams.get('screen_hint') ?? undefined,
|
|
29
|
+
invitation: req.nextUrl.searchParams.get('invitation') ?? undefined,
|
|
29
30
|
workspace: req.nextUrl.searchParams.get('workspace') ?? undefined,
|
|
30
31
|
});
|
|
31
32
|
return write(NextResponse.redirect(to), [txCookie(await seal(tx, c.cookieSecret, TX_SECONDS), secureFor(c))]);
|
package/dist/oidc.d.ts
CHANGED
package/dist/oidc.js
CHANGED
|
@@ -55,11 +55,13 @@ export async function authorizeUrl(c, a) {
|
|
|
55
55
|
if (a.connection)
|
|
56
56
|
q.set('connection', a.connection); // straight to that way in (google, microsoft, github, sso)
|
|
57
57
|
if (a.loginHint)
|
|
58
|
-
q.set('login_hint', a.loginHint); // the address
|
|
58
|
+
q.set('login_hint', a.loginHint); // the card opens on that address's ways in
|
|
59
59
|
if (a.locale)
|
|
60
60
|
q.set('ui_locales', a.locale); // the sign-in page's language
|
|
61
61
|
if (a.screenHint === 'sign-up')
|
|
62
62
|
q.set('prompt', 'create'); // the sign-up page, where people may join
|
|
63
|
+
if (a.invitation)
|
|
64
|
+
q.set('invitation', a.invitation); // an invitation email's: join, then back here
|
|
63
65
|
if (a.workspace)
|
|
64
66
|
q.set('workspace', a.workspace); // signed in to that workspace (a member's only)
|
|
65
67
|
if (c.audience)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiveth/nextjs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.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",
|