File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
packages/shared/src/internal/clerk-js Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -98,24 +98,14 @@ export class RedirectUrls {
9898 #getRedirectUrl( prefix : 'signIn' | 'signUp' ) {
9999 const forceKey = `${ prefix } ForceRedirectUrl` as const ;
100100 const fallbackKey = `${ prefix } FallbackRedirectUrl` as const ;
101- let newKeyInUse : string | undefined ;
102101
103102 let result ;
104103 // Prioritize forceRedirectUrl
105104 result = this . fromSearchParams [ forceKey ] || this . fromProps [ forceKey ] || this . fromOptions [ forceKey ] ;
106- if ( result ) {
107- newKeyInUse = forceKey ;
108- }
109105 // Try to get redirect_url, only allowed as a search param
110106 result ||= this . fromSearchParams . redirectUrl ;
111- if ( result ) {
112- newKeyInUse = 'redirectUrl' ;
113- }
114107 // Otherwise, fallback to fallbackRedirectUrl
115108 result ||= this . fromSearchParams [ fallbackKey ] || this . fromProps [ fallbackKey ] || this . fromOptions [ fallbackKey ] ;
116- if ( result ) {
117- newKeyInUse = fallbackKey ;
118- }
119109
120110 if ( ! result && this . mode === 'modal' ) {
121111 return window . location . href ;
You can’t perform that action at this time.
0 commit comments