@@ -20,7 +20,6 @@ export type ThirdPartyAuthProps = {
2020 onContinueWithApple ?: FormEventHandler < HTMLFormElement > ;
2121 showSeparator ?: boolean ;
2222 viewName ?: string ;
23- deeplink ?: string ;
2423 flowQueryParams ?: QueryParams ;
2524 separatorType ?: 'or' | 'signInWith' ;
2625} ;
@@ -35,7 +34,6 @@ const ThirdPartyAuth = ({
3534 onContinueWithApple,
3635 showSeparator = true ,
3736 viewName = 'unknown' ,
38- deeplink,
3937 flowQueryParams,
4038 separatorType = 'or' ,
4139} : ThirdPartyAuthProps ) => {
@@ -91,7 +89,6 @@ const ThirdPartyAuth = ({
9189 < GoogleLogo className = "w-full h-auto" />
9290 </ >
9391 ) ,
94- deeplink,
9592 } }
9693 />
9794 < ThirdPartySignInForm
@@ -111,7 +108,6 @@ const ThirdPartyAuth = ({
111108 < AppleLogo className = "w-full h-auto" />
112109 </ >
113110 ) ,
114- deeplink,
115111 } }
116112 />
117113 </ div >
@@ -139,7 +135,6 @@ const ThirdPartySignInForm = ({
139135 buttonText,
140136 onSubmit,
141137 viewName,
142- deeplink,
143138 flowQueryParams,
144139} : {
145140 party : 'google' | 'apple' ;
@@ -155,14 +150,12 @@ const ThirdPartySignInForm = ({
155150 buttonText : ReactElement ;
156151 onSubmit ?: FormEventHandler < HTMLFormElement > ;
157152 viewName ?: string ;
158- deeplink ?: string ;
159153 flowQueryParams ?: QueryParams ;
160154} ) => {
161155 const { logViewEventOnce } = useMetrics ( ) ;
162156 const { l10n } = useLocalization ( ) ;
163157 const stateRef = useRef < HTMLInputElement > ( null ) ;
164158 const formRef = useRef < HTMLFormElement > ( null ) ;
165- const isDeeplinking = deeplink !== undefined ;
166159
167160 const getLoginAriaLabel = ( ) => {
168161 const labels = {
@@ -201,12 +194,6 @@ const ThirdPartySignInForm = ({
201194 case 'apple-signup' :
202195 GleanMetrics . thirdPartyAuth . startAppleAuthFromReg ( ) ;
203196 break ;
204- case 'google-deeplink' :
205- GleanMetrics . thirdPartyAuth . googleDeeplink ( ) ;
206- break ;
207- case 'apple-deeplink' :
208- GleanMetrics . thirdPartyAuth . appleDeeplink ( ) ;
209- break ;
210197 }
211198
212199 // wait for all the Glean events to be sent before the page unloads
@@ -221,19 +208,6 @@ const ThirdPartySignInForm = ({
221208 onSubmit = ( ) => true ;
222209 }
223210
224- useEffect ( ( ) => {
225- if ( deeplink && formRef . current ) {
226- // Only deeplink if this is the correct button
227- if (
228- ( deeplink === 'googleLogin' && party === 'google' ) ||
229- ( deeplink === 'appleLogin' && party === 'apple' )
230- ) {
231- onClick ( ) ;
232- formRef . current . submit ( ) ;
233- }
234- }
235- } , [ deeplink , onClick , party ] ) ;
236-
237211 return (
238212 < form
239213 action = { authorizationEndpoint }
@@ -258,22 +232,20 @@ const ThirdPartySignInForm = ({
258232 < input type = "hidden" name = "response_mode" value = { responseMode } />
259233 ) }
260234
261- { ! isDeeplinking ? (
262- < button
263- type = "submit"
264- className = { `w-[60px] h-[60px] p-4 flex items-center justify-center rounded-full border focus-visible-default outline-offset-2
265- ${
266- party === 'google'
267- ? 'bg-[#F9F4F4] border-[#747775] border-[1px]'
268- : 'bg-black border-transparent'
269- }
270- ` }
271- onClick = { onClick }
272- aria-label = { getLoginAriaLabel ( ) }
273- >
274- { buttonText }
275- </ button >
276- ) : null }
235+ < button
236+ type = "submit"
237+ className = { `w-[60px] h-[60px] p-4 flex items-center justify-center rounded-full border focus-visible-default outline-offset-2
238+ ${
239+ party === 'google'
240+ ? 'bg-[#F9F4F4] border-[#747775] border-[1px]'
241+ : 'bg-black border-transparent'
242+ }
243+ ` }
244+ onClick = { onClick }
245+ aria-label = { getLoginAriaLabel ( ) }
246+ >
247+ { buttonText }
248+ </ button >
277249 </ form >
278250 ) ;
279251} ;
@@ -302,7 +274,6 @@ function getState(flowQueryParams: QueryParams | undefined) {
302274
303275 // Remove unwanted keys
304276 const filteredParams = deleteParams ( new URLSearchParams ( combinedParams ) , [
305- 'deeplink' ,
306277 'email' ,
307278 'emailStatusChecked' ,
308279 'forceExperiment' ,
0 commit comments