kyd-shared-badge 0.3.80 → 0.3.81
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/package.json
CHANGED
|
@@ -41,6 +41,7 @@ export function ConnectAccounts(props: ConnectAccountsProps) {
|
|
|
41
41
|
initialProviderId,
|
|
42
42
|
githubAppSlugId,
|
|
43
43
|
userId,
|
|
44
|
+
inviteId,
|
|
44
45
|
} = props;
|
|
45
46
|
|
|
46
47
|
const router = useRouter();
|
|
@@ -341,7 +342,7 @@ export function ConnectAccounts(props: ConnectAccountsProps) {
|
|
|
341
342
|
className="w-full sm:w-auto bg-[var(--icon-accent)] text-white transition-colors font-semibold"
|
|
342
343
|
onClick={() => {
|
|
343
344
|
const opaqueState = window.crypto?.randomUUID?.() || Math.random().toString(36).substring(2);
|
|
344
|
-
const stateObj = { opaqueState, userId, companyId };
|
|
345
|
+
const stateObj = { opaqueState, userId, companyId, inviteId };
|
|
345
346
|
const stateString = encodeURIComponent(JSON.stringify(stateObj));
|
|
346
347
|
const redirectUrl = `https://github.com/apps/${githubAppSlugId}/installations/new?state=${stateString}`;
|
|
347
348
|
window.location.href = redirectUrl;
|