Files
Faraz Patankar 02bf38cba3 add nextjs-auth example (#79)
* add nextjs-auth example

* rename starter to nextjs-auth-mongo
2021-04-30 18:16:06 -04:00

17 lines
491 B
JavaScript

import Layout from '../components/layout'
export default function Page () {
return (
<Layout>
<h1>API Example</h1>
<p>The examples below show responses from the example API endpoints.</p>
<p><em>You must be signed in to see responses.</em></p>
<h2>Session</h2>
<p>/api/examples/session</p>
<iframe src="/api/examples/session"/>
<h2>JSON Web Token</h2>
<p>/api/examples/jwt</p>
<iframe src="/api/examples/jwt"/>
</Layout>
)
}