shadi
shadi
Explore posts from servers
TTCTheo's Typesafe Cult
Created by shadi on 12/21/2023 in #questions
Setting up a custom sign in page with AuthJs (NextAuth v5)
The docs don't really explain how to make a custom sign in page and list providers using authjs, has anyone got this to work? This is all they have: https://authjs.dev/guides/basics/pages
1 replies
TTCTheo's Typesafe Cult
Created by shadi on 12/9/2023 in #questions
File Upload with Background Processing and Toast Updates in Nextjs
I'm in the process of planning a feature for my Next.js project. The feature involves a file upload form, and once users submit files, they should be redirected to another page while the file upload process occurs in the background. I want to implement a toast at the bottom right of the page that displays the upload progress (similar to Google Drive). The goal is to allow users to navigate across pages while the upload toast persists and updates accordingly. I'm seeking advice on the best approach to implement this feature, particularly whether it's achievable without using a state management library. My initial thought was to utilize a layout.tsx and integrate the upload progress toast there. However, I'm uncertain about where to invoke the upload function and how to establish a connection between the upload progress and the toast. Any guidance on how to implement this architecture effectively would be greatly appreciated.
2 replies