To integrate Discord OAuth2 into our application, we will have to do these steps:
In the < NavComponent />, add a simple Sign In hyperlink that redirects the user to the Discord OAuth2 Page
Upon successful authentication, we'll retrieve the code from query parameters
After that, we'll be able to get the user token
When we get the user token, we'll generate a JWT Token with all the necessary claims
Then we'll store the token securely in the user's cookies.
Details
This implementation is just the foundation for integrating Discord OAuth2 into our application. This means that there will be no logout functionality or storing information in our database.
Base For Discord OAuth2
Proposal
To integrate Discord OAuth2 into our application, we will have to do these steps:
Details
This implementation is just the foundation for integrating Discord OAuth2 into our application. This means that there will be no logout functionality or storing information in our database.