Unverified Commit d866121f authored by Tharaka Abeyratne's avatar Tharaka Abeyratne Committed by GitHub

[docs] Update authentication docs to fix iron-session link. (#33483)

Co-authored-by: 's avatarVincent Voyer <vincent@codeagain.com>
Co-authored-by: 's avatarLee Robinson <me@leerob.io>
parent 7df38bc5
......@@ -62,7 +62,7 @@ export async function getServerSideProps(context) {
}
```
Let's transform the profile example to use [server-side rendering](/docs/basic-features/pages#server-side-rendering). If there's a session, return `user` as a prop to the `Profile` component in the page. Notice there is not a loading skeleton in [this example](https://next-with-iron-session.vercel.app/).
Let's transform the profile example to use [server-side rendering](/docs/basic-features/pages#server-side-rendering). If there's a session, return `user` as a prop to the `Profile` component in the page. Notice there is not a loading skeleton in [this example](https://iron-session-example.vercel.app/).
```jsx
// pages/profile.js
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment