How to use Firebase Authentication in Next.js 13, Server Side with Admin SDK Geiel Peguero on May 27, 2023 I'm new to this world of Full Stack Frameworks like Next.js, SvelteKit, Remix... But I know all the advantages it has so I wanted to use it to crea... Read full post Submit Preview Dismiss Collapse Expand Victor Fu Victor Fu Victor Fu Follow Build fast! Joined Sep 3, 2023 • Sep 5 '23 Dropdown menu Copy link Hide Using await fetch("/api/login") in the middleware doesn't work. It will throw an error: Failed to parse URL. I found a working solution for my case. FYI. await fetch(`${request.nextUrl.origin}/api/login`) Enter fullscreen mode Exit fullscreen mode Collapse Expand Estevan Ulian Estevan Ulian Estevan Ulian Follow Joined Jan 19, 2024 • Jan 19 '24 Dropdown menu Copy link Hide Thanks for the tip. Collapse Expand Ibrahim Raimi Ibrahim Raimi Ibrahim Raimi Follow Software Engineer & Technical Writer | Currently building an AI lead magnet SAAS platform. Email ibrahimraimi.me@gmail.com Location Lagos Nigeria Pronouns he/him Work Software Engineer Joined Jul 26, 2020 • May 27 '23 Dropdown menu Copy link Hide Great article, Geiel. I love the fact that you included screenshots for better understanding. Collapse Expand Geiel Peguero Geiel Peguero Geiel Peguero Follow I just want to learn and build nice things, hoping to feel the same joy I felt when I first coded "Hello World" Email geielpeguero@gmail.com Joined May 22, 2023 • May 27 '23 Dropdown menu Copy link Hide Thank you Ibrahim Collapse Expand Aksanti Bahiga tacite Aksanti Bahiga tacite Aksanti Bahiga tacite Follow Joined Oct 7, 2023 • Oct 7 '23 Dropdown menu Copy link Hide Thank you for the article, but i would like to know , how do i get current user information? Collapse Expand David Bakare David Bakare David Bakare Follow Joined Oct 27, 2023 • Jan 9 '24 Dropdown menu Copy link Hide auth.currentUser.[information] Collapse Expand maxwissink maxwissink maxwissink Follow for fun, oh and my job also has something to do with code or something Joined Oct 8, 2023 • Oct 8 '23 Dropdown menu Copy link Hide When deploying this to firebase, i get an 500 internal server error, can you confirm that this solution works on your end? thanks Collapse Expand Ahmed Ayman Ahmed Ayman Ahmed Ayman Follow Location Cairo, Egypt Work UI/UX Designer & Front-end Developer at Develop Network Joined Nov 6, 2020 • Jan 14 '24 Dropdown menu Copy link Hide Yes same for me I get an error The default Firebase app does not exist. Make sure you call initializeApp() before using any of the Firebase services Collapse Expand Zain_ul_din Zain_ul_din Zain_ul_din Follow Joined Apr 17, 2023 • Dec 22 '23 Dropdown menu Copy link Hide How to retrieve user credentials on the client side once the user login and reloads the page? Collapse Expand jikkeee jikkeee jikkeee Follow Joined May 30, 2021 • Jul 21 '23 Dropdown menu Copy link Hide thanks man Collapse Expand Shehryar Shehryar Shehryar Follow Joined Mar 15, 2023 • Oct 3 '23 Dropdown menu Copy link Hide Just what I needed, amazing article! Collapse Expand David Bakare David Bakare David Bakare Follow Joined Oct 27, 2023 • Jan 9 '24 Dropdown menu Copy link Hide You are the best! Collapse Expand Sid Sid Sid Follow Joined Jan 26, 2022 • Feb 14 '24 Dropdown menu Copy link Hide Great Article! Collapse Expand Vikas Yadav Vikas Yadav Vikas Yadav Follow Joined Jul 13, 2024 • Jul 16 '24 Dropdown menu Copy link Hide great documentation Collapse Expand victordelva victordelva victordelva Follow blexity.com Joined Nov 16, 2023 • Nov 16 '23 Dropdown menu Copy link Hide Thank you! It was helpful! Collapse Expand Estevan Ulian Estevan Ulian Estevan Ulian Follow Joined Jan 19, 2024 • Jan 19 '24 Dropdown menu Copy link Hide It's a great article. Thank you. Collapse Expand Kevin Tom Kevin Tom Kevin Tom Follow Developer . Joined Jul 21, 2024 • Jul 21 '24 Dropdown menu Copy link Hide Great article. I followed it but midway lost track. Ended up using firebase-nextjs package. It was much easier to setup. Code of Conduct • Report abuse
Using
await fetch("/api/login")in the middleware doesn't work. It will throw an error: Failed to parse URL. I found a working solution for my case. FYI.Thanks for the tip.
Great article, Geiel. I love the fact that you included screenshots for better understanding.
Thank you Ibrahim
Thank you for the article, but i would like to know , how do i get current user information?
auth.currentUser.[information]
When deploying this to firebase, i get an 500 internal server error, can you confirm that this solution works on your end? thanks
Yes same for me I get an error
The default Firebase app does not exist. Make sure you call initializeApp() before using any of the Firebase services
How to retrieve user credentials on the client side once the user login and reloads the page?
thanks man
Just what I needed, amazing article!
You are the best!
Great Article!
great documentation
Thank you! It was helpful!
It's a great article. Thank you.
Great article. I followed it but midway lost track.
Ended up using firebase-nextjs package. It was much easier to setup.