@stackframe/stack 2.6.20 → 2.6.21
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 +10 -0
- package/dist/esm/generated/global-css.js +1 -1
- package/dist/esm/generated/global-css.js.map +1 -1
- package/dist/esm/lib/stack-app.js +4 -5
- package/dist/esm/lib/stack-app.js.map +1 -1
- package/dist/generated/global-css.d.mts +1 -1
- package/dist/generated/global-css.d.ts +1 -1
- package/dist/generated/global-css.js +1 -1
- package/dist/generated/global-css.js.map +1 -1
- package/dist/generated/quetzal-translations.d.mts +2 -2
- package/dist/generated/quetzal-translations.d.ts +2 -2
- package/dist/lib/stack-app.js +4 -5
- package/dist/lib/stack-app.js.map +1 -1
- package/package.json +4 -4
package/dist/lib/stack-app.js
CHANGED
|
@@ -64,7 +64,7 @@ var import_url = require("../utils/url");
|
|
|
64
64
|
var import_auth = require("./auth");
|
|
65
65
|
var import_cookie = require("./cookie");
|
|
66
66
|
var NextNavigation = (0, import_compile_time.scrambleDuringCompileTime)(NextNavigationUnscrambled);
|
|
67
|
-
var clientVersion = "js @stackframe/stack@2.6.
|
|
67
|
+
var clientVersion = "js @stackframe/stack@2.6.21";
|
|
68
68
|
function getUrls(partial) {
|
|
69
69
|
const handler = partial.handler ?? "/handler";
|
|
70
70
|
const home = partial.home ?? "/";
|
|
@@ -583,7 +583,7 @@ var _StackClientAppImpl = class __StackClientAppImpl {
|
|
|
583
583
|
clientReadOnlyMetadata: crud.client_read_only_metadata,
|
|
584
584
|
async inviteUser(options) {
|
|
585
585
|
if (!options.callbackUrl && typeof window === "undefined") {
|
|
586
|
-
throw new Error("Cannot invite user without a callback URL
|
|
586
|
+
throw new Error("Cannot invite user without a callback URL from the server. Make sure you pass the `callbackUrl` option: `inviteUser({ email, callbackUrl: ... })`");
|
|
587
587
|
}
|
|
588
588
|
await app._interface.sendTeamInvitation({
|
|
589
589
|
teamId: crud.id,
|
|
@@ -1680,12 +1680,11 @@ var _StackServerAppImpl = class extends _StackClientAppImpl {
|
|
|
1680
1680
|
},
|
|
1681
1681
|
async inviteUser(options) {
|
|
1682
1682
|
if (!options.callbackUrl && typeof window === "undefined") {
|
|
1683
|
-
throw new Error("Cannot invite user without a callback URL
|
|
1683
|
+
throw new Error("Cannot invite user without a callback URL from the server. Make sure you pass the `callbackUrl` option: `inviteUser({ email, callbackUrl: ... })`");
|
|
1684
1684
|
}
|
|
1685
|
-
await app._interface.
|
|
1685
|
+
await app._interface.sendServerTeamInvitation({
|
|
1686
1686
|
teamId: crud.id,
|
|
1687
1687
|
email: options.email,
|
|
1688
|
-
session: null,
|
|
1689
1688
|
callbackUrl: options.callbackUrl ?? (0, import_url.constructRedirectUrl)(app.urls.teamInvitation)
|
|
1690
1689
|
});
|
|
1691
1690
|
}
|