Discord Redirect

Hi! I have a question: how can I force a redirection to the OAuth login page (Discord in my case) from a server-side action?
3 Replies
Ping
Ping4mo ago
Usually in a server-action (or even just server endpoints in general) you would throw a 301 redirect so that the browser receives that and redirects to the provided URL
Ping
Ping4mo ago
MDN Web Docs
301 Moved Permanently - HTTP | MDN
The HTTP 301 Moved Permanently redirection response status code indicates that the requested resource has been permanently moved to the URL in the Location header.
Léo
LéoOP4mo ago
But what is the better auth url that allows redirection?

Did you find this page helpful?