-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SDK-4499] Update Next.js QS for app dir (#10293)
Co-authored-by: Frederik Prijck <[email protected]>
- Loading branch information
1 parent
b2f0e66
commit accdf14
Showing
10 changed files
with
137 additions
and
76 deletions.
There are no files selected for viewing
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: "app/layout.jsx" | ||
language: jsx | ||
--- | ||
|
||
<!-- markdownlint-disable MD041 --> | ||
|
||
```jsx | ||
import { UserProvider } from '@auth0/nextjs-auth0/client'; | ||
|
||
export default function RootLayout({ children }) { | ||
return ( | ||
<html lang="en"> | ||
<UserProvider> | ||
<body>{children}</body> | ||
</UserProvider> | ||
</html> | ||
); | ||
} | ||
``` |
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,5 +1,5 @@ | ||
--- | ||
name: login.jsx | ||
name: "app/login.jsx" | ||
language: jsx | ||
--- | ||
|
||
|
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,5 +1,5 @@ | ||
--- | ||
name: logout.jsx | ||
name: "app/logout.jsx" | ||
language: jsx | ||
--- | ||
|
||
|
7 changes: 4 additions & 3 deletions
7
...quickstart/webapp/nextjs/files/profile.md → ...art/webapp/nextjs/files/profile-client.md
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
name: "app/profile-server/page.jsx" | ||
language: jsx | ||
--- | ||
|
||
<!-- markdownlint-disable MD041 --> | ||
|
||
```jsx | ||
import { getSession } from '@auth0/nextjs-auth0'; | ||
|
||
export default async function ProfileServer() { | ||
const { user } = await getSession(); | ||
|
||
return ( | ||
user && ( | ||
<div> | ||
<img src={user.picture} alt={user.name} /> | ||
<h2>{user.name}</h2> | ||
<p>{user.email}</p> | ||
</div> | ||
) | ||
); | ||
} | ||
``` |
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