Šlukas MacPrásk
Šlukas MacPrásk
WWasp-lang
Created by Killshot on 6/20/2024 in #🙋questions
Lemon Squeezy Integration into OpenSaas (Alternative to Stripe)
Would be good to add Paddle as well
100 replies
WWasp-lang
Created by Šlukas MacPrásk on 4/16/2024 in #🙋questions
Google Auth re-using the OAuth token
@miho did you have a chance to play around with this? Would that be adding custom endpoints via https://wasp-lang.dev/docs/advanced/apis ? I also saw there was this PR https://github.com/wasp-lang/wasp/pull/1993 which seems to have "accessToken" in one of the hooks?
12 replies
WWasp-lang
Created by Šlukas MacPrásk on 4/16/2024 in #🙋questions
Google Auth re-using the OAuth token
Or step 2 may be extending the User entity to store the Google OAuth tokens (and step 3 will be the logic for extracting the tokens) if there's no default Prisma place for it in opensaas yet?
12 replies
WWasp-lang
Created by Šlukas MacPrásk on 4/16/2024 in #🙋questions
Google Auth re-using the OAuth token
Or would it be recommended not to mix the user login auth in wasp/opensaas with Google API... i.e. the user will login (with those default scopes) and there'll be a custom redirect URL for the additional scope authorization and extracting the token information?
12 replies
WWasp-lang
Created by Šlukas MacPrásk on 4/16/2024 in #🙋questions
Google Auth re-using the OAuth token
then step 2 is a question how to extract/store the access token for the Google API client + have some job to do a refresh token
12 replies
WWasp-lang
Created by Šlukas MacPrásk on 4/16/2024 in #🙋questions
Google Auth re-using the OAuth token
I assume step 1 may be to change getGoogleAuthConfig in src/server/auth/setUsername.ts to include the additional scopes needed for the Google API
12 replies
WWasp-lang
Created by Šlukas MacPrásk on 3/13/2024 in #🙋questions
Importing external CSS
Thanks a lot @owopi ! Yes, @martinsos , the approach from that @miho gist worked
8 replies
WWasp-lang
Created by Šlukas MacPrásk on 3/13/2024 in #🙋questions
Importing external CSS
@martinsos ok, I did the following: 1. changed the import as suggested 2. added resolveProjectPath to tailwind.config.clj as in that convo (but for flag-icons) Now it still doesn’t load — get the following error in Client logs: “The request url "/home/…/app/node_modules/flag-icons/…" is outside of Vite serving allow list.” It will work when I explicitly add the file path to server.fs.allow list in vite.config.ts But I assume that’s not the correct way? I guess it should use a path from .wasp/out/webapp (but I don’t see flag-icons copied there)?
8 replies