NextJS authentication with GitHub OAuth (React, NodeJS)

Publicado el: 18 marzo 2022
en el canal de: Eddie Jaoude
4,236
105

Authentication verifies who a user is, while authorization controls what a user can access. Next.js supports multiple authentication patterns.

0:00 Intro for react authentication
1:00 Create NextJS app
2:19 NextJS folder structure
2:57 Next Auth install
3:34 NextJS dynamic API routing
4:31 Next Auth API with GitHub OAuth provider
6:12 NextJS env file (environment variables)
6:42 GitHub OAuth clientID and secret
8:27 React login logout
9:42 React session state
12:14 Protecting NextJS API with GitHub OAuth authentication

LEARN MORE

JOIN our inclusive open source community EddieHub now for FREE ... http://eddiehub.org, also checkout my website and sign up to our community NEWSLETTER... http://eddiejaoude.io for my live stream + video schedule and community calls

Also join our community GitHub organisation by creating an issue with the type "invite me to the organisation" :)

I now have a 2nd YouTube channel for short video clips of 60s or less, subscribe ...
   / eddiejaoudetv  

SERVICES I USE AND RECOMMEND

Some of these might be affiliate links, no extra cost you to, but I get a little $ if you sign up, plus you might get a discount too

Live streaming with Streamyard http://links.eddiejaoude.io/t/pYlzGjc...
Cloud hosting with Digital Ocean, you will get $100 FREE credit http://links.eddiejaoude.io/t/EAaCRWh...
Membership, Newsletters, CRM all in one with Kartra http://links.eddiejaoude.io/t/pQ5W3FR...
Awesome backup platform, BackBlaze http://links.eddiejaoude.io/t/4rqTZjL...
Descript for video editing, audiograms and transcription http://links.eddiejaoude.io/t/RlpGwZt...
Riverside online recording studio for the best quality https://riverside.fm/?utm_campaign=ca...

COMMUNITY SPONSORS

A BIG thank you to my GitHub Sponsors:
***
Stephen Mount http://github.com/stemount
DailyDotDev https://github.com/dailydotdev
***

Nicholas Carrigan https://github.com/nhcarrigan
Santosh Yadav https://github.com/santoshyadavdev

FIND ME ON OTHER SOCIAL PLATFORMS

Don’t forget to support my channel by subscribing below, it’s free, and also share with your friends. Subscribe now!!
https://www.youtube.com/eddiejaoude?s...

Follow on other socials for behind the scenes footage, join discord to continue the conversation...

http://eddiejaoude.io
https://github.com/eddiejaoude
   / eddiejaoude  
  / eddiejaoude  
  / eddiejaoude  
  / eddiejaoude  
  / discord  
http://github.com/EddieHubCommunity

NextJS authentication with GitHub OAuth (React, NodeJS)


En esta página del sitio puede ver el video en línea NextJS authentication with GitHub OAuth (React, NodeJS) de Duración hora minuto segunda en buena calidad , que subió el usuario Eddie Jaoude 18 marzo 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 4,236 veces y le gustó 105 a los espectadores. Disfruta viendo!