Digital CEO
Digital CEO
  • 60
  • 393 624
Google Auth with Nextjs 14 app directory
CONNECT ON MY DISCORD COMMUNITY:
discord.gg/5zsdrxH8m8
Note: When you receive the profile info from Google via the id_token, decode it and save the user's info in your own cookie or database. If you save and rely on the direct id_token jwt value for future profile info like I did in the tutorial, remember it will expire, requiring additional checks to re-fetch it. An easier way is to store the user's name and profile photo links in your database unless you want to refresh profile info from Google more frequently.
0:00 intro
0:38 Demo
2:36 Create Google Project
4:00 Google Auth Api route
9:18 Google Sign in Button
10:14 Google Tokens
12:34 Create Login Cookie
14:00 Google Profile Token
15:28 Check if user is Logged in
17:00 Header Profile Photo
20:28 Logout Button/Route
23:00 Re-use saved user token on logins
27:00 Some points
SOCIALS:
Twitter: omarel
Website: www.omarel.com
LinkedIn: www.linkedin.com/in/omarelbaga
GitHub: github.com/oelbaga
มุมมอง: 455

วีดีโอ

How to add Google Analytics to your Next.js 14 site with app router
มุมมอง 3.1K6 หลายเดือนก่อน
CONNECT ON MY DISCORD COMMUNITY: discord.gg/5zsdrxH8m8 SOCIALS: Twitter: omarel Website: www.omarel.com LinkedIn: www.linkedin.com/in/omarelbaga GitHub: github.com/oelbaga
How to stop dev emails from going to spam
มุมมอง 1206 หลายเดือนก่อน
Email platforms like gmail and yahoo now require email authentication on domain names to be allowed through their system. This involves adding email authenticating records to the DNS of the domain you are sending emails from. CONNECT ON MY DISCORD COMMUNITY: discord.gg/5zsdrxH8m8 SOCIALS: GitHub: github.com/oelbaga Twitter: omarel Website: www.omarel.com LinkedIn: www.linkedin.com/i...
Zuckerberg Reveals Challenges of AI Data Centers (Meta, AI, Energy Insights)
มุมมอง 2896 หลายเดือนก่อน
CONNECT ON MY DISCORD COMMUNITY: discord.gg/5zsdrxH8m8 SOCIALS: Twitter: omarel Website: www.omarel.com LinkedIn: www.linkedin.com/in/omarelbaga GitHub: github.com/oelbaga
Will AI Steal Our Jobs? Reacting to Predictions on AI in Software Engineering
มุมมอง 877 หลายเดือนก่อน
CONNECT ON MY DISCORD COMMUNITY: discord.gg/5zsdrxH8m8 SOCIALS: Twitter: omarel Website: www.omarel.com LinkedIn: www.linkedin.com/in/omarelbaga GitHub: github.com/oelbaga
Self host Next.js website on an Ubuntu server with Auto Deploy on commits!
มุมมอง 4.6K7 หลายเดือนก่อน
To host Next.js app/website you only need a server running Node.js. In this video you will learn how to host a next.js website or app on an ubuntu (linux) server in the cloud which you can get from Digital ocean or AWS. As a note, In this example we are not using Vercel, Netlify or any of the app hosting platforms on digital ocean or aws as those are also abstractions. We are setting up a clean...
Men Crash an All Women Tech conference...
มุมมอง 1.3Kปีที่แล้ว
CONNECT ON MY DISCORD COMMUNITY: discord.gg/5zsdrxH8m8 SOCIALS: Twitter: omarel Website: www.omarel.com LinkedIn: www.linkedin.com/in/omarelbaga GitHub: github.com/oelbaga
What happened to Elon Musk Neuralink monkeys: Grisly Details...
มุมมอง 2.8Kปีที่แล้ว
CONNECT ON MY DISCORD COMMUNITY: discord.gg/5zsdrxH8m8 SOCIALS: Twitter: omarel Website: www.omarel.com LinkedIn: www.linkedin.com/in/omarelbaga GitHub: github.com/oelbaga
You feel safe in cars, but little do you know how they spy
มุมมอง 71ปีที่แล้ว
In a new study by Mozilla, 24 companies were found collecting private data on drivers of their cars. CONNECT ON MY DISCORD COMMUNITY: discord.gg/5zsdrxH8m8 SOCIALS: Twitter: omarel Website: www.omarel.com LinkedIn: www.linkedin.com/in/omarelbaga GitHub: github.com/oelbaga
iPhone’s radiation levels spark backlash
มุมมอง 157ปีที่แล้ว
0:00 iPhone banned 2:00 Google Steals User Locations 4:00 TikTok Teen privacy Tech News - September 2023 CONNECT ON MY DISCORD COMMUNITY: discord.gg/5zsdrxH8m8 SOCIALS: Twitter: omarel Website: www.omarel.com LinkedIn: www.linkedin.com/in/omarelbaga GitHub: github.com/oelbaga
They exploit developers...devs must unite
มุมมอง 85ปีที่แล้ว
CONNECT ON MY DISCORD COMMUNITY: discord.gg/5zsdrxH8m8 SOCIALS: Twitter: omarel Website: www.omarel.com LinkedIn: www.linkedin.com/in/omarelbaga GitHub: github.com/oelbaga
Learn CRUD with React/Next.JS and MySQL (Complete tutorial)
มุมมอง 40Kปีที่แล้ว
In this video you'll learn how to do all CRUD operations with Next.JS api and MySQL database, or any database you choose to use. We'll create an API in Next.JS and then learn how to read, create, update and delete data through that API. The concept generally works with any database but in this demo you'll use a MySQL database. CONNECT ON MY DISCORD COMMUNITY: discord.gg/5zsdrxH8m8 0:00 intro 1:...
Most annoying problem with GIT and NextJS
มุมมอง 276ปีที่แล้ว
CONNECT ON MY DISCORD COMMUNITY: discord.gg/5zsdrxH8m8 SOCIALS: Twitter: omarel Website: www.omarel.com LinkedIn: www.linkedin.com/in/omarelbaga GitHub: github.com/oelbaga #github #git #sourcecontrol #react #nextjs #vercel
Dynamic Refs and State in React
มุมมอง 3Kปีที่แล้ว
Dynamic Refs and State in React
How React/NextJS logins actually work. Sessions VS oAuth
มุมมอง 736ปีที่แล้ว
How React/NextJS logins actually work. Sessions VS oAuth
Coding all NextJS 13 Features (2022)
มุมมอง 1.8K2 ปีที่แล้ว
Coding all NextJS 13 Features (2022)
How to use Context API in React/NextJS
มุมมอง 20K2 ปีที่แล้ว
How to use Context API in React/NextJS
Change parent state from child components in React/NextJS
มุมมอง 6K2 ปีที่แล้ว
Change parent state from child components in React/NextJS
React form validation with react hook form. Simple!
มุมมอง 1K2 ปีที่แล้ว
React form validation with react hook form. Simple!
Make full viewport sections snap scroll in React (scroll to sections on click, animation, more)
มุมมอง 15K2 ปีที่แล้ว
Make full viewport sections snap scroll in React (scroll to sections on click, animation, more)
Should you learn code from Tutorials? [REACTION]
มุมมอง 1812 ปีที่แล้ว
Should you learn code from Tutorials? [REACTION]
3 costly mistakes developers make with NextJS
มุมมอง 4.4K2 ปีที่แล้ว
3 costly mistakes developers make with NextJS
Reacting to a day in the life of a Google Engineer
มุมมอง 1922 ปีที่แล้ว
Reacting to a day in the life of a Google Engineer
Convert an HTML Website to React/NextJS
มุมมอง 15K2 ปีที่แล้ว
Convert an HTML Website to React/NextJS
[Step by Step] Deploy NextJS on Ubuntu Digital Ocean (2 NextJS Apps on one server)
มุมมอง 39K2 ปีที่แล้ว
[Step by Step] Deploy NextJS on Ubuntu Digital Ocean (2 NextJS Apps on one server)
Solving the React 18 Double Render problem on useEffect
มุมมอง 9K2 ปีที่แล้ว
Solving the React 18 Double Render problem on useEffect
Send URL Parameters in React to a form
มุมมอง 3.1K2 ปีที่แล้ว
Send URL Parameters in React to a form
NextJS MySQL example. Get MySQL data into a react app using Node JS
มุมมอง 46K2 ปีที่แล้ว
NextJS MySQL example. Get MySQL data into a react app using Node JS
Vanilla React Image Slider from scratch - just 30 minutes - even easier than javascript sliders
มุมมอง 9572 ปีที่แล้ว
Vanilla React Image Slider from scratch - just 30 minutes - even easier than javascript sliders
Every way to add CSS in a React app
มุมมอง 2092 ปีที่แล้ว
Every way to add CSS in a React app

ความคิดเห็น

  • @johan127lespaul
    @johan127lespaul วันที่ผ่านมา

    excelent video ! definitely the best info is in english, i saw a lot of videos in spanish about this and i didin't understand.

  • @ANURAG_GUPTA576
    @ANURAG_GUPTA576 3 วันที่ผ่านมา

    Thanks , explained in short

  • @shaqranbhat1168
    @shaqranbhat1168 6 วันที่ผ่านมา

    Absolute gold man❤

  • @JC-yy5nf
    @JC-yy5nf 9 วันที่ผ่านมา

    Brother. You need to tell me which keyboard that is. Sounds so good.

  • @Rakscha-Sun
    @Rakscha-Sun 15 วันที่ผ่านมา

    Google zoosadism and macaques. This monkeys don't suffer for science, they suffer because the people controlling this experiments are psychopaths.,

  • @sandeep-4433
    @sandeep-4433 15 วันที่ผ่านมา

    I want to connect next js with sql server rather than mysql.. can u explain.. how.. regarding tables connection and stored procedures also..

  • @robertnewberry7799
    @robertnewberry7799 17 วันที่ผ่านมา

    Sepher Yetzirah The Book of Formation Abraham Chapter VI 9. God hath also set one thing against the other; the good against the evil and the evil against the good, good from good and evil from evil, the good marks out the evil and the evil marks out the good; good is reserved for the good ones and evil is reserved for the evil ones. Isaiah 5:20 “Woe unto them that call evil good, and good evil; that put darkness for light, and light for darkness; that put bitter for sweet, and sweet for bitter!” Gaze to Abraham your Father and to Sara who conceived you, for he was alone and I called him and I blessed him and I increased him Genesis 12:1-3 King James Version 12 Now the Lord had said unto Abram, Get thee out of thy country, and from thy kindred, and from thy father's house, unto a land that I will shew thee: 2 And I will make of thee a great nation, and I will bless thee, and make thy name great; and thou shalt be a blessing: 3 And I will bless them that bless thee, and curse him that curseth thee: and in thee shall all families of the earth be blessed.

  • @marcellaecommerce
    @marcellaecommerce หลายเดือนก่อน

    Thank you Brother.

  • @LauraHaas
    @LauraHaas หลายเดือนก่อน

    Thank you very much for these explanations! React is a great tool

  • @maxschneidercodes3
    @maxschneidercodes3 หลายเดือนก่อน

    Thank you so much!

  • @patolorde
    @patolorde หลายเดือนก่อน

    Thanks brother!

  • @darz_k.
    @darz_k. หลายเดือนก่อน

    Not a brilliant idea having your heavy keyboard keys mic'd up.

  • @zainmp3499
    @zainmp3499 หลายเดือนก่อน

    very helpfull video thankyou

  • @amremam4188
    @amremam4188 2 หลายเดือนก่อน

    Then what is the point of npm run build

  • @nshettys
    @nshettys 2 หลายเดือนก่อน

    Great Stuff! Thanks. And yes, you got a new subscriber to your channel today

  • @simonboddy7415
    @simonboddy7415 2 หลายเดือนก่อน

    Really good! I'm still getting over the fact that nextjs has to be built in situ. A build can always fail, so it seems very risky to overwrite your live site with some new code that needs to be built. Folk are likely handling this with containers but I think I'm going to try a blue/green strategy and switch the nginx config when the build has succeeded. I'm also a bit startled to see the PATH modified in the deployment pipeline. Why should I need to modify my pipeline every time my node version changes? I think I need a better solution there. God I wish we still had server guys.

  • @jake_bareng
    @jake_bareng 3 หลายเดือนก่อน

    this was an actual good video and it was not 1 hour long like other videos

  • @iSkayer
    @iSkayer 3 หลายเดือนก่อน

    This was a really great tutorial, thank you for walking us through the steps. I already knew most of them, but needed a refresh, especially on the pm2 part. Keep up the great work!

  • @thecrazymedic4480
    @thecrazymedic4480 3 หลายเดือนก่อน

    This guy is a genius. Thanks a lot. I was having a lot of issues with SSH keys but it's clear now

  • @CmdZOD
    @CmdZOD 3 หลายเดือนก่อน

    Thank you so much, i was banging my head on the wall with this SSH stuff !

  • @mathlouly
    @mathlouly 3 หลายเดือนก่อน

    pretty good, ty.

  • @pongtswaila7922
    @pongtswaila7922 3 หลายเดือนก่อน

    Very helpful content. Tnx so much! 🙏

  • @scottnoring2960
    @scottnoring2960 3 หลายเดือนก่อน

    How old is this. Is it NextJS14? I'm getting errors with usestate and useffect.

  • @palakbasak3551
    @palakbasak3551 3 หลายเดือนก่อน

    How to deploy this?

  • @Tanner-cz4bd
    @Tanner-cz4bd 3 หลายเดือนก่อน

    thanks bro

  • @davidtakidze25
    @davidtakidze25 4 หลายเดือนก่อน

    Thank you for the incredible video! I have a question: I’m currently using a droplet to host WordPress and would like to host a Next.js application on the same droplet. I followed your steps, but are there any additional considerations I should consider when hosting Next.js and WordPress on the same server?

  • @AndreWang-kf3zu
    @AndreWang-kf3zu 4 หลายเดือนก่อน

    It works! I applied google analytics on my nextjs personal website. Super helpful.

  • @josemarceloalexandre3656
    @josemarceloalexandre3656 4 หลายเดือนก่อน

    Wow, best video I've ever watched on TH-cam! Congratulations!!!

  • @arfazchhapawala2892
    @arfazchhapawala2892 4 หลายเดือนก่อน

    Thanks for sharing an amazing tutorial 🙏. I was really searching for the perfect one, and it is well explained 🙌

  • @Marlorouse109
    @Marlorouse109 4 หลายเดือนก่อน

    Thanks for sharing !!! This was very helpful!

  • @imomuganda
    @imomuganda 4 หลายเดือนก่อน

    Double like! This was clear, concise, and it worked.

  • @beticohernandez9536
    @beticohernandez9536 4 หลายเดือนก่อน

    interesante. Un carrito de compra seria interesante tambien.

  • @FelipeOcampo-v4i
    @FelipeOcampo-v4i 4 หลายเดือนก่อน

    Super helpful! Thanks so much

  • @proconfusedtechie3867
    @proconfusedtechie3867 4 หลายเดือนก่อน

    It's okay if we want to pass one or two state variables. But still react is bad when the application grows large and need to pass multiple state variables and their setters. It needs support from redux when the application grows large

  • @devinsmith4713
    @devinsmith4713 4 หลายเดือนก่อน

    8 hours of my life (of which I still didn't succeed in) summed up in 25 minutes. Now I can get on with the meat of my project. Thank you.

  • @vaskoooo
    @vaskoooo 4 หลายเดือนก่อน

    Man I just discovered your channel and I’m already addicted. You have a realtà nice way to deliver concepts

  • @christianpossidonio
    @christianpossidonio 5 หลายเดือนก่อน

    Do you winner my like and I subscribe. Thanks my fried. Ops, I`m from Rio de Janeiro - Brazil here

  • @marchello6826
    @marchello6826 5 หลายเดือนก่อน

    Thank you for the incredibly helpful content!

  • @ijusthatenormiesihavenooth1164
    @ijusthatenormiesihavenooth1164 5 หลายเดือนก่อน

    It was genius. Would hire immediately

  • @Andy-l9p
    @Andy-l9p 5 หลายเดือนก่อน

    Thats remarkable. Danke

  • @alleggs
    @alleggs 5 หลายเดือนก่อน

    something wrong with this. i tries to run two apps on same domain with subomains, but only one app runs on domain

  • @BantuNiLo
    @BantuNiLo 5 หลายเดือนก่อน

    Wr kill billions of chickens

  • @achrefmtir8250
    @achrefmtir8250 5 หลายเดือนก่อน

    this content is legendary !

  • @bimwerx
    @bimwerx 5 หลายเดือนก่อน

    The title reads 'Self host' - using Digital Ocean is not self hosting. How about using Ubuntu-server on a local machine to deploy a live Next.js app?

    • @haiffy
      @haiffy 5 หลายเดือนก่อน

      Digital ocean droplets are just ubuntu server under the hood, literally same thing, you can use this tutorial on any ubuntu server anywhere

    • @PongLenis99
      @PongLenis99 3 หลายเดือนก่อน

      @@haiffy yah it worked for me on my self hosted ubuntu. great tut

  • @AshishSethi-cs1bu
    @AshishSethi-cs1bu 5 หลายเดือนก่อน

    Great Tutorial though! Thanks a lot 🙂 Faced an issue while following your steps, solved it by doing this: Generate ssh key on the last step (github actions) using ed25519 instead of rsa, in my case generating using rsa gave me an error (Permission denied)

  • @anonimosbrain
    @anonimosbrain 5 หลายเดือนก่อน

    who else was paying attention to the mechanical key caps sound instead of the tutorial

  • @shariquenadim3144
    @shariquenadim3144 5 หลายเดือนก่อน

    Will the WordPress headless cms slow?

  • @wakka2100
    @wakka2100 5 หลายเดือนก่อน

    i cannot find the js file on app/api/hello, i also dont use resource. also whatever i do its always 404

  • @drstrangelove09
    @drstrangelove09 6 หลายเดือนก่อน

    "folder" -> directory

  • @NaveedPasha-rx8wv
    @NaveedPasha-rx8wv 6 หลายเดือนก่อน

    Thank you so much for this amazing tutorial! I followed your steps and successfully implemented Google Auth in my Next.js project. Your clear explanations and detailed instructions made it easy to understand. Keep up the great work!