Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
456 changes: 456 additions & 0 deletions STELLAR_WALLETS_KIT_IMPLEMENTATION.md

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions app/auth/signin/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { useState } from 'react';
import { signIn, getSession } from 'next-auth/react';
import { useRouter } from 'next/navigation';
import { useRouter, useSearchParams } from 'next/navigation';
import Link from 'next/link';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
Expand All @@ -26,7 +26,8 @@ export default function SignInPage() {
const [isLoading, setIsLoading] = useState(false);
const [error, setError] = useState('');
const router = useRouter();

const searchParams = useSearchParams();
const callbackUrl = searchParams.get('callbackUrl') || '/user';
const handleSubmit = async (e: React.FormEvent) => {
e.preventDefault();
setIsLoading(true);
Expand Down Expand Up @@ -59,7 +60,7 @@ export default function SignInPage() {
Cookies.set('accessToken', session?.user.accessToken ?? '');
Cookies.set('refreshToken', session?.user.refreshToken ?? '');
}
router.push('/user');
router.push(callbackUrl);
}
}
} catch {
Expand Down
270 changes: 0 additions & 270 deletions app/debug/page.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
<html lang='en'>
<html lang='en' suppressHydrationWarning>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
Expand Down
Loading
Loading