-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remember to upgrade...and then add the next-auth issue
- Loading branch information
Showing
10 changed files
with
380 additions
and
63 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
'use client'; | ||
|
||
import ServerExample from "./ServerExample2"; | ||
import ServerExample2 from "./ServerExample2"; | ||
|
||
export default function ClientImportsOwnServer() { | ||
return ( | ||
<button onClick={async () => alert(await ServerExample('hi'))}>client importing own server action: I will break</button> | ||
<button onClick={async () => console.log('ClientImportsOwnServer', await ServerExample2('hi'))}>client importing own server action: I will break</button> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
'use server'; | ||
|
||
import { cookies } from 'next/headers'; | ||
import { getServerSession } from 'next-auth/next'; | ||
|
||
export default async function ServerExample(message: string) { | ||
cookies().get('anything'); | ||
|
||
return 'hey'; | ||
return await getServerSession({}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
'use server'; | ||
|
||
import { cookies } from 'next/headers'; | ||
import { getServerSession } from 'next-auth/next'; | ||
|
||
export default async function ServerExample(message: string) { | ||
cookies().get('anything'); | ||
|
||
return 'hey'; | ||
export default async function ServerExample2(message: string) { | ||
return await getServerSession({}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
'use server'; | ||
|
||
import { cookies } from 'next/headers'; | ||
import { getServerSession } from 'next-auth/next'; | ||
|
||
export default async function ServerExample(message: string) { | ||
cookies().get('anything'); | ||
|
||
return 'hey'; | ||
return await getServerSession({}); | ||
} |
Oops, something went wrong.