Next.js Authentication Tutorial using React Context API and Appwrite

Veröffentlicht am: 18 April 2023
auf dem Kanal: James Q Quick
10,492
205

ChatGPT is my go to when I need to write some code. I recently used ChatGPT to generate a useUser hook in Next.js that uses the context API and Appwrite to handle authentication. We'll be able to track a logged in user across different pages, conditionally display information, and protect authenticated routes.

*GIVEAWAY*
5 FREE Appwrite t-shirts 👕 To enter:

1. Go to https://jqqmemes.com/ and create a fun meme
2. Share on Twitter with #jqqmemes OR share the link in the comments below!

*SPONSORED BY APPWRITE*
Check out Appwrite - https://appwrite.io/

*QUESTIONS ABOUT MY SETUP*
Check out my Uses page for my VS Code setup, what recording equipment I use, etc. https://www.jamesqquick.com/uses

*STAY IN TOUCH 👋*
Check out the Podcast - https://compressed.fm/
Courses - https://jamesqquick.com/courses
Newsletter 🗞 - https://www.jamesqquick.com/newsletter
Follow me on Twitter 🐦 -   / jamesqquick  

*DISCORD*
Join the Learn Build Teach Discord Server 💬 -   / discord  

*Timestamps*
00:00 - Intro
00:20 - What We'll Build
01:10 - Starter Code and Requirements
03:40 - Giveaway
04:50 - Why the Context API in React
06:15 - ChatGPT to Create React Context and Hook
11:05 - Update User Hook with Appwrite
13:10 - Configuring Appwrite in Next.js
17:05 - Creating New Appwrite Project
18:40 - Configuring User Provider
19:45 - Testing Authentication Methods
21:20 - Showing Content Based on Authenticated User
23:40 - Protecting Next.js Routes Based on Authenticated User


Auf dieser Seite können Sie das Online-Video Next.js Authentication Tutorial using React Context API and Appwrite mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer James Q Quick 18 April 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 10,492 Mal angesehen und es wurde von 205 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!