Skip to content

redirect_uri_mismatch error in production #509

Answered by laymonage
AustenLamacraft asked this question in Q&A
Discussion options

You must be logged in to vote

You can specify multiple callback URLs for your app in this section:

See the "Add Callback URL" button on the top right.

You can then specify your production and development endpoints. It doesn't support wildcards, so you'll have to add the URL for every deploy preview provided by Vercel. I think there's a limit on the number of URLs you can add, so remove any deploy previews that are no longer used.

I'm wondering if there is an elegant way of avoiding this behaviour.

This is the only way that I'm aware of. It's a bit of a hassle, but it's there for security reasons, otherwise any arbitrary URL can get the token once the user has signed in through our app.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AustenLamacraft
Comment options

Answer selected by AustenLamacraft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants