Custom domain but after discord OAuth site is using railway domain

Anonymous
TRIAL

a year ago

Hi! I have a website deployed on railway which is using discord oauth to allow users to enter.

When you visit soundmapsniper.com, you are redirected to the oauth.

Once you have succesfully authorised your account however, the routes for my site are all using the generated railway domain, not my custom domain. Im not sure if this is just something i've setup wrong, or maybe something to do with discord oauth?

Thanks for any help πŸ™

0 Replies

raflymln
TRIAL

a year ago

i believe it's 100% problems from you own code, not railway…


raflymln
TRIAL

a year ago

custom domains are easy to deploy, just put it on custom domain settings on the project and put the domain into cloudflare, if your oauth redirection somehow still redirecting to another domain, the best solution is to look at your code and debug it


Anonymous
TRIAL

a year ago

Im not using cloudflare its just railway deployed from my github, maybe using cloudflare would help πŸ˜„


Anonymous
TRIAL

a year ago

Yeah it was me, thanks raf!


a year ago

you need to change the callback url on ur discord application


Custom domain but after discord OAuth site is using railway domain - Railway Help Station