mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-18 21:36:12 +00:00
🐛 fix: Try fix authorization code exchange & pin next-auto to beta.29 (#8496)
* 📌 pin: next-auth@beta.29 * 🐛 fix: infinite redirection
This commit is contained in:
+1
-1
@@ -211,7 +211,7 @@
|
||||
"modern-screenshot": "^4.6.0",
|
||||
"nanoid": "^5.1.5",
|
||||
"next": "~15.3.3",
|
||||
"next-auth": "5.0.0-beta.25",
|
||||
"next-auth": "5.0.0-beta.29",
|
||||
"next-mdx-remote": "^5.0.0",
|
||||
"nextjs-toploader": "^3.8.16",
|
||||
"node-machine-id": "^1.1.12",
|
||||
|
||||
@@ -75,8 +75,8 @@ export default memo(() => {
|
||||
|
||||
const searchParams = useSearchParams();
|
||||
|
||||
// Redirect back to the page url
|
||||
const callbackUrl = searchParams.get('callbackUrl') ?? '';
|
||||
// Redirect back to the page url, fallback to '/' if failed
|
||||
const callbackUrl = searchParams.get('callbackUrl') ?? '/';
|
||||
|
||||
const handleSignIn = async (provider: string) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user