+ {session ? (
+ <>
+ {t('loggedIn', {username: session.user?.name})}
+
+ {t('secret')}
+
+
+ >
+ ) : (
+ <>
+ {t('loggedOut')}
+ {t('login')}
+ >
+ )}
+
+ );
+}
diff --git a/examples/example-next-13-next-auth-v5/src/app/[locale]/login/page.tsx b/examples/example-next-13-next-auth-v5/src/app/[locale]/login/page.tsx
new file mode 100644
index 000000000..386f6c74e
--- /dev/null
+++ b/examples/example-next-13-next-auth-v5/src/app/[locale]/login/page.tsx
@@ -0,0 +1,58 @@
+'use client';
+
+import {useRouter} from 'next/navigation';
+import {signIn} from 'auth';
+import {useLocale, useTranslations} from 'next-intl';
+import {FormEvent, useState} from 'react';
+import PageLayout from '../../../components/PageLayout';
+
+export default function Login() {
+ const locale = useLocale();
+ const t = useTranslations('Login');
+ const [error, setError] = useState