Today is the 22nd of January 2024, and as discussed in my last blog, we have successfully completed the basic architecture of the extension, HashX, which will be the world's first Hashnode extension. My goal for today is to complete the entire authentication process.
As mentioned in previous blogs, we are not going to include any type of mutations (token auth) and such in this extension due to time constraints. However, I will be implementing an authentication process based on the user's name.
Users will import their usernames, and once they enter the username, they will be logged into the extension. I will store the username in my local storage of the extension so that I can use it across different API calls.
Since I was new to GraphQL, I started exploring Apollo Client in order to make API calls with GraphQL queries and was finally able to set up the authentication, primarily the login process, and it looks decent. Up to now, I haven't implemented the logout process properly, but I guess this is all I was able to do today.
Here is how ugly UI looks right now :)
My major task for tomorrow will be to complete the logout process properly and also to set up the UI for the profile page. If time permits, I will certainly be adding other routes to the navigation bar so that later it will be easy for me to just create the UI for that section.
That's it for the day.