Skip to content

Commit 73ec156

Browse files
committed
Fix onboarding
1 parent 71c35fd commit 73ec156

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/(overview)/(setup)

apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/(overview)/(setup)/setup-page.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function SetupPage(props: { toMetrics: () => void }) {
2929
const { theme, mounted } = useThemeWatcher();
3030
const [showPulse, setShowPulse] = useState(false);
3131
const [selectedFramework, setSelectedFramework] = useState<'nextjs' | 'react' | 'javascript' | 'python'>('nextjs');
32-
const [keys, setKeys] = useState<{ projectId: string, publishableClientKey: string, secretServerKey: string, superSecretAdminKey: string } | null>(null);
32+
const [keys, setKeys] = useState<{ projectId: string, publishableClientKey: string, secretServerKey: string } | null>(null);
3333

3434
const onGenerateKeys = async () => {
3535
const newKey = await adminApp.createInternalApiKey({
@@ -44,7 +44,6 @@ export default function SetupPage(props: { toMetrics: () => void }) {
4444
projectId: adminApp.projectId,
4545
publishableClientKey: newKey.publishableClientKey!,
4646
secretServerKey: newKey.secretServerKey!,
47-
superSecretAdminKey: newKey.superSecretAdminKey!,
4847
});
4948
};
5049

@@ -596,7 +595,7 @@ export default function SetupPage(props: { toMetrics: () => void }) {
596595
}
597596

598597
function StackAuthKeys(props: {
599-
keys: { projectId: string, publishableClientKey: string, secretServerKey: string, superSecretAdminKey: string } | null,
598+
keys: { projectId: string, publishableClientKey: string, secretServerKey: string } | null,
600599
onGenerateKeys: () => Promise<void>,
601600
type: 'next' | 'raw',
602601
}) {
@@ -608,11 +607,13 @@ function StackAuthKeys(props: {
608607
<NextJsEnvKeys
609608
projectId={props.keys.projectId}
610609
publishableClientKey={props.keys.publishableClientKey}
610+
secretServerKey={props.keys.secretServerKey}
611611
/>
612612
) : (
613613
<APIEnvKeys
614614
projectId={props.keys.projectId}
615615
publishableClientKey={props.keys.publishableClientKey}
616+
secretServerKey={props.keys.secretServerKey}
616617
/>
617618
)}
618619

0 commit comments

Comments
 (0)