How do I start a backend authentication layer for divjoy?
I'd prefer to roll out my own solution than using firebase so how would the components work to trigger a sucessful login and subsequent stashing of the cookie in the site? how do I go about poking at the authentication middleware? any pointers in the general direction?
Trouble with contact form in deployed site
Hi Gabe, I'm using the bootstrap/CRA/firebase version of divjoy and I'm having trouble with the contact form. I've deployed to firebase, but the form is throwing a Unexpected token < in JSON at position 0. I managed to get the following errors logged to the console when running…
Any recommendations for components for a dashboard view?
Looking for the classic fixed left sidebar with fluid content within a container covering the majority of the screen. Many examples show up when I search Google and I'm looking for guidance on something that will just work, like the code base Divjoy provides! Maybe this is…
Can't submit contact form with no user logged in
Hi Gabe, could you help me with a small error? I'm using Divjoy's nextjs w/ firebase template and am running into an error when I try to submit the contact form with no user logged in. I get: (TypeError): Cannot read property 'getIdToken' of null. It references lines 4 -7 in…
Rendering children when Form Checkbox is checked?
I'm looking to create a simple "If" statement in my DivJoy contact form. I have a checkbox asking if the form filler is a "business customer". If that checkbox is checked, I need an additional field to appear asking "Company Name" How can I make the checkbox smart so that it…
Meaning of uid = auth.user && auth.user.uid
I'm trying to get the uid to fetch user information from Firebase. I'm confused at how to use a "hook" to get the auth instance first and then use another hook to fetch the data (the synchronization / ordering). I see this way currently works: const uid = auth.user &&…
Is there any documentation on using external api's?
I'm trying to fetch data from an external API and use CORS middleware exactly as described in the Next.js documentation https://nextjs.org/docs/api-routes/api-middlewares#connectexpress-middleware-support But no matter what I try, all it returns is undefined. I've tried multiple…