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
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
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.
But what is the better auth url that allows redirection?