Skip to content

Vercel deployment redirect URI #3419

@AashJ

Description

@AashJ

Question 💬

When deploying with vercel, after calling signIn, nextauthv4 redirects me to the vercel assigned url instead of the url i bought. For example, after calling signIn("github") my redirect uri is --------p617s86j0-aashj.vercel.app/api/auth/....

I'm wondering how I can change this to use my domain that i've assigned instead. Obviously this is an issue because i'll need to change my authorization url for my oauth provider every time i deploy.

I'm wondering what I'm doing wrong here...?

How to reproduce ☕️

Any vercel deployed nextjs app using nextauth with an oauth provider.

Contributing 🙌🏽

No, I am afraid I cannot help regarding this

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions