Giter VIP home page Giter VIP logo

Comments (5)

peterphanouvong avatar peterphanouvong commented on August 24, 2024

If you're getting an invalid URL string error its most likely to do with building to URL to redirect to get authenticated.
The URL is built from some env variables - so it might be worth double checking that the .env variables are being set

from kinde-auth-nextjs.

DaveOrDead avatar DaveOrDead commented on August 24, 2024

Hey @quacksire did @peterphanouvong's comment help to resolve this or do you still need some assistance?

from kinde-auth-nextjs.

quacksire avatar quacksire commented on August 24, 2024

Sorry about the delay, getting back into the swing of things after the holidays.

I readjusted the env vars to the URL it was being deployed on as @peterphanouvong and I still ran into the same issue.

Still not sure I know what's happening, and I can give access to the repo if needed.

Here's my .env
image

Here's my implementation of Sign In:
image

Here's my NextConfig
image

Here's my package.json
image

Here's my Vercel build settings (default Next.js preset)
image

from kinde-auth-nextjs.

peterphanouvong avatar peterphanouvong commented on August 24, 2024

Hey @quacksire, sorry you're still running into this issue - have you seen this video? https://www.youtube.com/watch?v=ZNuE7CkB6ck.

It may help with making sure that you have vercel set up with the correct .env variables for deployment

from kinde-auth-nextjs.

quacksire avatar quacksire commented on August 24, 2024

Following the video's guide, it worked successfully.

It was my mistake, I did not add or update the environment variables on the deployment platform (Vercel, Cloudflare Pages, etc)

Even though I deployed it with the .env file, which is not recommended anyway, it was not picked up by the deployment and was ignored by KindeSDK until I added the environment variables to that deployment's project on Vercel/Cloudflare Pages.

The issue was infuriatingly simple, but I appreciate the help nonetheless.

from kinde-auth-nextjs.

Related Issues (20)

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.