7cf3c3d28d
The issue is related to [12964](https://github.com/zeit/next.js/issues/12964) Let me know if there are any changes you want me to make. Affected examples: **with-glamor with-graphql-hooks with-graphql-react with-grommet with-http2 with-jest with-cookie-auth-fauna with-context-api with-cerebral with-aphrodite with-apollo-and-redux basic-css with-carbon-components amp-first** I would love to help more, so let me know if there is anything specific I can contribute to.
28 lines
663 B
JavaScript
28 lines
663 B
JavaScript
import Layout from '../components/layout'
|
|
|
|
const Home = () => (
|
|
<Layout>
|
|
<h1>Cookie-based authentication example</h1>
|
|
|
|
<p>Steps to test the functionality:</p>
|
|
|
|
<ol>
|
|
<li>Click signup and create an account, this will also log you in.</li>
|
|
<li>
|
|
Click home and click profile again, notice how your session is being
|
|
used through a token stored in a cookie.
|
|
</li>
|
|
<li>
|
|
Click logout and try to go to profile again. You'll get redirected to
|
|
the `/login` route.
|
|
</li>
|
|
</ol>
|
|
<style jsx>{`
|
|
li {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
`}</style>
|
|
</Layout>
|
|
)
|
|
|
|
export default Home
|