Activity
Mon
Wed
Fri
Sun
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
What is this?
Less
More

Memberships

University of Code

5.3k members • Free

Software Developer Academy

26.6k members • Free

7 contributions to University of Code
Github auth using pasport js in next js app
Trying to implement github authentication in my app using passport js I tried reading through documentation . I'm using hono js what I'm getting issue is when I try to authenticate it gives Error: Module not found: Can't resolve 'os' tried adding "use server" doesnt works , anyone here to show me the road to authentication .
2 likes • May '24
@Raja Farhan I tried doing everything may be that's issue with nextjs api routes , I'm doing it separately with hono now instead of next api route let's hope it will work.
0 likes • May '24
@Raja Farhan sry late reply , successfully done through lucia auth
How we all doing today?!
What’s everyone up to! Let’s chat 👇🏽
How we all doing today?!
3 likes • May '24
Struggling with bugs
Custom auth
I have been using third party auth for authentication, now when I started to create authentication on my own (oauth) got to know how they works how they handles session it's hard though.
Database query in middleware
Can't we run database query inside next js middleware ? If can't how we supposed to do that ?
0 likes • May '24
@Raja Farhan yeah totally understood , I was doing something like taking user param from search query and matching it with database.
0 likes • May '24
@Sonny Sangha Also can I do like using dynamic route , Creating _routes.ts in app folder where I will do the same instead of writing inside middleware?
This Blog Post SAVED me (App Router common mistakes)
https://vercel.com/blog/common-mistakes-with-the-next-js-app-router-and-how-to-fix-them#redirects-inside-of-try/catch-blocks Trust me it's worth a read, it helped me a tonne!
This Blog Post SAVED me (App Router common mistakes)
1 like • Apr '24
On my way to read
1-7 of 7
Mahi Chowdhury
3
37points to level up
@mahi-chowdhury-1919
Hello , I'm Mahi Chowdhury, Frontend developer working with Nextjs & tailwind hoping to learn from here.

Active 526d ago
Joined Apr 19, 2024
Powered by