Authentication thread | From react vanilla to Next
Unanswered
Rock Dove posted this in #help-forum
Rock DoveOP
Hi NextJS Community!
I'm a fresh NextJS developer, and I've been a bit lost from how it really works.
I'm trying to make an authentication system throught discord 0auth.
From React vanilla, I would make my frontend call my backend to send the user to the Discord OAuth portal, and then when he validates his account, I will receive a cookie from Discord that will contain all the account information. Now, I could use that cookie's information to call my external backend API with the cookie's credentials. Routes and components will call a context that call my backend API.
So I tried to search for how to make something like that into NextJS. The issue is that I didn't find any stable solutions. A lot of people who make tutorials use external libs to manipulate authentication, but in fact, I don't want to share any user's information with a third party library.
So how could I do that? Is it possible?
I'm a fresh NextJS developer, and I've been a bit lost from how it really works.
I'm trying to make an authentication system throught discord 0auth.
From React vanilla, I would make my frontend call my backend to send the user to the Discord OAuth portal, and then when he validates his account, I will receive a cookie from Discord that will contain all the account information. Now, I could use that cookie's information to call my external backend API with the cookie's credentials. Routes and components will call a context that call my backend API.
So I tried to search for how to make something like that into NextJS. The issue is that I didn't find any stable solutions. A lot of people who make tutorials use external libs to manipulate authentication, but in fact, I don't want to share any user's information with a third party library.
So how could I do that? Is it possible?