You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow developers to control which callback APIs to redirect.
solution
Pass via process.env.
Pass the redirectURL property directly to handleAuth.
Passing a config object with redirectURL property.
Pass via option of handleAuth.
Additional information
I have considered modifying the authentication URL generation logic in the SDK for TS and overriding it via a query parameter, but I feel that extending the configuration of the SDK for Remix would be a more straightforward implementation.
I found similar hard coding in the SDK for Next.js. Is it designed under the assumption that a specific path is set as a callback? If so, I felt it should be clearly stated in the SDK documentation.
Prerequisites
What is the problem you’re trying to solve?
Unable to control redirection to callback API.
Details
kinde-remix-sdk/src/handle-auth.js
Line 20 in ff037e2
redirect_url
from query parameters due to implementation usingSearchParams.append
.redirect_url
(defined by the SDK)What solution would you like to see?
Allow developers to control which callback APIs to redirect.
solution
process.env
.redirectURL
property directly tohandleAuth
.redirectURL
property.option
ofhandleAuth
.Additional information
I am ready to commit once the plan is in place!
The text was updated successfully, but these errors were encountered: