# Práctica NextAuth.js
# Introducción
This lab will be delivered in the same repo associated with the Nextra lab. Create a branch nextra
to point to the delivery point of the previous lab and be sure to push that branch to the remote of the assignment. Deliver this task in the main
branch.
The task is to add authentication to the Nextra Site using NextAuth.js.
- See the tutorial at section Reading "Getting Started with NextAuth.js" (opens new window)
- See also the tutorial Auth.js tutorial for Nextra and Next.js with GitHub (opens new window) at my PL notes (Nextra v2)
# Other requirements
These sections can be useful for the extra requirements:
- See section useRef explained
- See section getServerSideProps
- See the GitHub Docs chapter Using pagination in the REST API (opens new window)
- See the section Building Dynamic mdx with Nextra
- Section Dynamically read and process a MDX File illustrates how to build your own mdx posts and give them an style compatible with nextra. It uses
getStaticProps
,RemoteContent
,buildDynamicMDX
Last Updated: 5 days ago
← Nextra