GithubHelp home page GithubHelp logo

Comments (6)

whatisaghostwriter avatar whatisaghostwriter commented on May 28, 2024 1

Sure I found postmark to be quite pleasant but I haven't tested it yet. https://postmarkapp.com/developer/api/email-api. This plus cloudflare email routing should be a good combination for DNS/domain management. Btw in my original post, the first image is of the demo but the error is very ambiguous and is a 400 error(unsure how to get more in depth on the details)

from nuxt-auth.

becem-gharbi avatar becem-gharbi commented on May 28, 2024 1

I prefer not to set a default provider because this would be subjective. Any provider that supports REST API can be supported by the module regardless of their pricing model. I agree that Postmark's free tier is very limited compared to others such as Sendgrid, Resend, Mailgun.. If no one requested it, it simply won't be added. Since you find Resend convenient (and me too), I will add it on the next release.

from nuxt-auth.

becem-gharbi avatar becem-gharbi commented on May 28, 2024

Hi,

I agree that debugging for edge runtimes is tricky. The way I do this is by running the build command locally. Then I would run the application. If an error is thrown (in your case), I would search for its location on the server bundle (in your case it's 9295:39).

The baseURL should be a valid url, for example http://localhost:3000. With or without the trailing slash it doesn't matter.

Make sure that you have set nitro.preset in nuxt config to cloudlflare-pages.

from nuxt-auth.

whatisaghostwriter avatar whatisaghostwriter commented on May 28, 2024

I appreciate the quick response, can you verify that it doesn't work for any of the preview links you posted?
I have the same 400(Bad request) error and I've done everything to test it locally with no avail. Set DB_URL with mongodb, and synced schema with prisma db push.
Vercel edge https://nuxt-auth-demo.vercel.app/
Netlify edge https://nuxt-auth-demo.netlify.app/
Cloudflare pages https://nuxt-auth-c35.pages.dev/
It seems to be a malformed request/reponse object. I haven't tested out the Google Oauth option and just want email auth. Great project btw, I quite like the idea of edge workers.
This works for me https://nuxt-starter-app.bg.tn/auth/login?redirect=/
One last question, what would be FROM email format. edit Actually I see its just [email protected]
I'm sure the problem is I haven't set an email sender, so I'll look into it the source code more to provide a custom one. Meanwhile I will use sendgrid to resolve the issue but I believe its one of the worst providers.

from nuxt-auth.

becem-gharbi avatar becem-gharbi commented on May 28, 2024

The demo works ok. Can you check the message error returned? Also, do you know any other email providers that support HTTP api?

from nuxt-auth.

whatisaghostwriter avatar whatisaghostwriter commented on May 28, 2024

Sure I found postmark to be quite pleasant but I haven't tested it yet. https://postmarkapp.com/developer/api/email-api. This plus cloudflare email routing should be a good combination for DNS/domain management. Btw in my original post, the first image is of the demo but the error is very ambiguous and is a 400 error(unsure how to get more in depth on the details)

EDIT on the 400 error "prisma; database url must start with prisma//". I learned how to debug with browser console, and realized I did not setup up Prisma Data proxy, which seems to be the default option when using cloudfront pages.
Update on the email providers, I would like to propose that you add resend API. I've tested postmark and the drawbacks became more apparent along with the pricing. I think adding resend as the default email provider would make a lot of sense with ease of setup. I'd like to hear what you think of their pricing as well. It would help more people find this repo or at least consider it since a problem I had was not wanting to go through sendgrid and it completely went over my head when first setting up the environment variables. Its all good I can use the custom provider as well. https://resend.com/docs/api-reference/introduction. At least making mention of it in the docs would be a good move for SEO for more people to find this great repo. You can close this issue again

from nuxt-auth.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.