Skip to content

Commit 3060217

Browse files
authored
bump next (#146)
* bump next * fix build
1 parent af61a78 commit 3060217

3 files changed

Lines changed: 232 additions & 192 deletions

File tree

app/sign-in/page.tsx

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -77,23 +77,6 @@ const GradientText = ({ children, className = "" }: { children: React.ReactNode;
7777
);
7878
};
7979

80-
interface DescopeSuccessEvent {
81-
detail: {
82-
user: {
83-
userId: string;
84-
name?: string;
85-
email?: string;
86-
};
87-
};
88-
}
89-
90-
interface DescopeErrorEvent {
91-
detail: {
92-
error: string;
93-
message: string;
94-
};
95-
}
96-
9780
export default function SignInPage() {
9881
const router = useRouter();
9982
const [mounted, setMounted] = useState(false);
@@ -178,12 +161,12 @@ export default function SignInPage() {
178161
<Descope
179162
flowId={process.env.NEXT_PUBLIC_DESCOPE_FLOW_ID || 'sign-up-or-in'}
180163
theme="dark"
181-
onSuccess={(e: DescopeSuccessEvent) => {
164+
onSuccess={(e) => {
182165
console.log('Success:', e.detail.user);
183166
router.push('/dashboard');
184167
}}
185-
onError={(e: DescopeErrorEvent) => {
186-
console.error('Error:', e.detail.message);
168+
onError={(e) => {
169+
console.error('Error:', e.detail);
187170
}}
188171
/>
189172
</motion.div>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@descope/nextjs-sdk": "^0.12.11",
12+
"@descope/nextjs-sdk": "0.15.7",
1313
"class-variance-authority": "^0.7.1",
1414
"clsx": "^2.1.1",
1515
"dotenv": "^16.4.5",

0 commit comments

Comments
 (0)