nitrostack 1.0.17 → 1.0.18

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitrostack",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "NitroStack - Build powerful MCP servers with TypeScript",
5
5
  "type": "module",
6
6
  "main": "dist/core/index.js",
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
 
3
- import { useEffect, useState } from 'react';
3
+ import { useEffect, useState, Suspense } from 'react';
4
4
  import { useRouter, useSearchParams } from 'next/navigation';
5
5
  import { useStudioStore } from '@/lib/store';
6
6
  import { Loader2, CheckCircle2, XCircle } from 'lucide-react';
7
7
 
8
- export default function OAuthCallback() {
8
+ function OAuthCallback() {
9
9
  const router = useRouter();
10
10
  const searchParams = useSearchParams();
11
11
  const { oauthState, setJwtToken } = useStudioStore();
@@ -158,3 +158,18 @@ export default function OAuthCallback() {
158
158
  );
159
159
  }
160
160
 
161
+ export default function AuthCallbackPage() {
162
+ return (
163
+ <Suspense fallback={
164
+ <div className="fixed inset-0 flex items-center justify-center bg-background">
165
+ <div className="text-center">
166
+ <Loader2 className="w-8 h-8 text-primary animate-spin mx-auto mb-4" />
167
+ <p className="text-muted-foreground">Loading...</p>
168
+ </div>
169
+ </div>
170
+ }>
171
+ <OAuthCallback />
172
+ </Suspense>
173
+ );
174
+ }
175
+