Monster
Monster
TTCTheo's Typesafe Cult
Created by Monster on 5/2/2024 in #questions
Scheduled Notifications
Any ideas on how I could do scheduled push notifications for my web app? I'm working on a calendar app, and the one thing I'm unsure how to do is the notifications. Ideally I want it to be a PWA as well, so you could "install" it to your phone and get notifications there.
4 replies
TTCTheo's Typesafe Cult
Created by Monster on 2/12/2024 in #questions
transitioning nextjs to expo
I currently have a nextjs app that works fine. However I found out scheduling notifications in PWA world is difficult and doesn’t work offline. So the plan is to move to Expo/react native. Anyone have ideas on libraries and such I can use? Currently I have in the site next-auth, tailwind, and react query with a full nextjs based api. In expo im looking at using expo router v3, nativewind, and react query again to actually make requests. I’m also potentially looking at using the api routes in expo, since ideally it’d be nice to have one universal codebase for api, web, and app. The part I’m struggling with most is auth though, need some help with ideas for that
3 replies
TTCTheo's Typesafe Cult
Created by Monster on 7/24/2023 in #questions
next auth with custom backend
I have a nextjs web app. I have a backend that is managed as a separate server, repo, etc. The backend is where it checks for user role to change the responses, or prevent some users from using some routes etc. How should I go about connecting these two? I tried including credentials from the front end fetch requests but the backend won’t receive the next auth set cookies since they’re not set by the same server.
2 replies
TTCTheo's Typesafe Cult
Created by Monster on 7/24/2023 in #questions
Accessing cookies set by API in Astro frontmatter
I have an external API that we use for login. It sets a cookie on the client browser. The Astro frontmatter however does not see that cookie, as it is unauthorized when trying to access routes that are blocked by login status. But the client can access them fine, making me think its Astro not having the cookie. Any ideas how we can fix this or get around it? I have a feeling a similar type of thing would happen in Next on server components.
3 replies
TTCTheo's Typesafe Cult
Created by Monster on 7/4/2023 in #questions
Vercel Analytics
Is it possible to embed the data from vercel analytics into a page? So I can make it visible to people who dont have the dashboard access? Is there another analytics type solution that does do that if vercel doesn't?
5 replies
TTCTheo's Typesafe Cult
Created by Monster on 6/20/2023 in #questions
Questions about GPL licensing
I am going to be using a GPL licensed application for a project. I self host the application. I use the provided api to interact with it on my front end in another application. With GPL do I have to open source and make public my front end entirely? I’m basically getting confused on using GPL licensed things in other applications but not modifying or rereleasing them
2 replies
TTCTheo's Typesafe Cult
Created by Monster on 4/13/2023 in #questions
Auth Astro package
Not directly a question I guess, but has anyone used the Auth Astro package? It's supposed to be a wrapper for Auth.js (NextAuth). I'm trying to get it to use a database via an adapter but it does not want to work for me no matter what I try. Any input would be appreciated.
2 replies
TTCTheo's Typesafe Cult
Created by Monster on 2/28/2023 in #questions
User authentication in Astro?
What ways are there to do user authentication within Astro, similar to NextAuth? I have found a package (Astro-Auth) that seems similar, but also seems like it hasn't been worked on for a while and the docs appear to be a little scattered. The goal was to do something similar to Auth.js's Email provider with the magic email links to sign people in. Does any information exist on doing something like that in Astro?
5 replies