No followers yet
Once you ship this you can't edit the description of the project, but you'll be able to add more devlogs and re-ship it as you add new features!
okay so I worked for a while and I realised that my server need a seperate set of apis and stuff so I set that part up I'll need the api so my server would be able to interact with the services and stuff so rn i did the login api for the server if login works then the api returns the api_key and a few other details which would be stored on the client side and will be attached on each request to authenticate the user obv
Okay so for this hour I was working on the api key part for the cli app so I would need a way for cli apps to interact with the backend and since cli does not work on the browser setup i cant work with idtokens and stuff so i have to use the api key method so I wrote code for creating the api key and adding it to the table on user signup
Okay now i can officailly claim that I'm good(decent) at writing code KUZZZ I MANAGED TO FIGURE THAT part out in like 10 mins after i was done crying about it and then I ALSO MANAGEED TO FIGURE OUT SUPABASE CAN DO SERVER SIDE TOKEN VERIFCATION AND HANDLEING (i guess) so that had a diff form of storing cookies so i got it to that format and loaded the user info from the JWT MAKING IT A VERY SECURE APPPPPPPPPPPP YYEYEYYEYEY yESSSSS
AHHHHHHH IT IS JUST PAIN IDK WHY I DECIDED TO USE A BACKEND STRUCTURE NOW( i mean it wont work without it since i need a cli 😭) okay so I spent a good chunk of time trying to setup cookies from the backend cuz i want those cookies to be secure and httponly and secure and this can only be set by the server im cooked i cant get it funny part is that the frontend is getting request to set the cookeis also half of login and parts of dashbaord UI im doing hopefully turns out well dont laugh at my pic below i know im trash
Okay so This hour I coded the login API with supabase and its very detailed it elaborates each line of error and tells the user what the error is also made chages in the way my controller was structured moved some functons from being stanalone ones and moved them into a class and did a bit of structuring I also made a login page and I integrated the API with the Login page and now it calls the api in the front end i also made error handleing more redundant and more easy to understand from user persepective and i need to make these changes in the signup page as well
Okay So i made a few changes I enabled a smooth transition and stuff also i added a button to resend the email verification part also there is a very cool loader and text changes to infrom the user also there is a 60 sec delay before the next request i added that since supabase has a 30 sec cool down to send the confirmation mail to the same mail id actaully there is nothing like reverfication as such in supabase so i became creative and reused the sign-up thing works exactly the same way :)
Okay the first 5 Hours(OBV VERCEL ALTERNATIVE SO) I spent setting up Supa base Auth for the project so that people can log into thier own account and they are 100 percent secure from any hacker sort of threats
I build the sigup page where after singup it sends you a confirmation mail to your account to confirm it also i built the home page for shipstack a simple elegant one also added a beautifull annimation after sign-up link is clicked the theme is also amazing