Closed Daniellop1 closed 2 years ago
Hey @Daniellop1, could you please share the error that you are getting on your next server?
I have looked at the vercel error page and I don't have any and in the chrome developer console either.
I would double check the callback URL you have setup. For example if you are using GitHub Auth, in the OAuth app settings you should set something like
Authorization callback URL: https://beam.daniellop.me/api/auth/callback/github
That should get your user signed in.
Hey, I have configured okta as a provider and this is the configuration I have set in my admin panel.
@Daniellop1 unfortunately without some logs from your server it's hard to figure out what is the issue. Next-auth has some pretty good errors on your server https://next-auth.js.org/errors#server
hey @Daniellop1 i have the same problem with github aoth, in dev, i visit localhost:3000
it redirect me to http://localhost:3000/sign-in?callbackUrl=http://localhost:3000/
and when i click Signin with Github
it redirectme same page but extended url repeated https://some.domaing.cloud/sign-in?callbackUrl=https://some.domain.cloud/sign-in?callbackUrl=https://some.domain.cloud/sign-in?callbackUrl=https://some.domain.cloud/sign-in?callbackUrl=https://some.domain.cloud/&error=Callback&error=OAuthCallback&error=OAuthCallback&error=Callback
hey @Daniellop1 i have the same problem with github aoth, in dev, i visit
localhost:3000
it redirect me tohttp://localhost:3000/sign-in?callbackUrl=http://localhost:3000/
and when i clickSignin with Github
it redirectme same page but extended url repeatedhttps://some.domaing.cloud/sign-in?callbackUrl=https://some.domain.cloud/sign-in?callbackUrl=https://some.domain.cloud/sign-in?callbackUrl=https://some.domain.cloud/sign-in?callbackUrl=https://some.domain.cloud/&error=Callback&error=OAuthCallback&error=OAuthCallback&error=Callback
Yeah, thats exactly what happens to me. But with okta and github.
@Daniellop1 unfortunately without some logs from your server it's hard to figure out what is the issue. Next-auth has some pretty good errors on your server https://next-auth.js.org/errors#server
the error i get in the url params are mostly error?error=Callback, here a screenshot of what the network receive
i already check the nextAuth errors server but there not that specific
Without some server logs, or without a reproducible demo, it's hard to debug this. Please make sure to have the proper configuration for Okta/GitHub.
Without some server logs, or without a reproducible demo, it's hard to debug this. Please make sure to have the proper configuration for Okta/GitHub.
Hey, I've created a test account for my instance (beam.daniellop.me)
Mail: test@daniellop.me Pass: Demoaccount1.
I had the same issue, it got it fixed after i specified NEXTAUTH_URL
I have found this error that might be helpful in finding the problem.
@Daniellop1 could you please double-check that the database has the correct schema after you've run npx prisma db push
?
I did it but i'm getting this
Assuming you're using a PlanetScale database, you'll see that Prisma error if you attempt to make a schema change (like creating a table) to a production branch directly.
https://docs.planetscale.com/concepts/branching#development-and-production-branches
A couple of options here:
main
branch to production status until after you've got the initial schema set up and the application is runningmain
, connect your local dev environment to this new development branch, npx prisma db push
to set up the schema in the development branch, deploy your changes to main
. This is the workflow you'll use to apply any future schema changes to the database and is described in more detail in the doc linked above.I've found the error. You can't use beam with a deployed branch. Thanks for everything.
Hey, I'm triying to login to my Beam instance but this error shows (https://beam.daniellop.me/sign-in?callbackUrl=https://beam.daniellop.me/sign-in?callbackUrl=https://beam.daniellop.me/&error=Callback)