@@ -331,7 +331,7 @@ function authenticateWithRedirect(params: AuthenticateWithRedirectParams): Promi
331
331
- ` continueSignUp `
332
332
- ` boolean | undefined `
333
333
334
- Whether to continue (i .e . PATCH ) an existing \[ ` SignUp ` ]\[ signup - ref ] (if present ) or create a new \[ ` SignUp ` ]\[ signup - ref ] .
334
+ Whether to continue (i .e . PATCH ) an existing ` SignUp ` (if present ) or create a new ` SignUp ` .
335
335
336
336
-- -
337
337
@@ -371,6 +371,81 @@ function authenticateWithRedirect(params: AuthenticateWithRedirectParams): Promi
371
371
For OAuth connections , see the [custom flow for OAuth connections ](/ docs / custom - flows / oauth - connections ).
372
372
For enterprise connections , see the [custom flow for enterprise connections ](/ docs / custom - flows / enterprise - connections ).
373
373
374
+ ### ` authenticateWithPopup() `
375
+
376
+ Opens a popup window to allow a user to sign up via a Single Sign On (SSO ) connection , such as OAuth or SAML , where an external account is used for verifying the user ' s identity.
377
+
378
+ ` ` ` typescript
379
+ function authenticateWithPopup(params: AuthenticateWithPopupParams): Promise<void>
380
+ ` ` `
381
+
382
+ #### ` AuthenticateWithPopupParams `
383
+
384
+ <Properties >
385
+ - ` redirectUrl `
386
+ - ` string `
387
+
388
+ The full URL or path that the OAuth provider should redirect to after successful authorization on their part . Typically , this will be a simple ` /sso-callback ` route that either calls [` Clerk.handleRedirectCallback ` ](/ docs / references / javascript / clerk #handle - redirect - callback ) or mounts the [` <AuthenticateWithRedirectCallback /> ` ](/ docs / components / control / authenticate - with - callback ) component . See the [custom flow ](/ docs / custom - flows / oauth - connections ) for implementation details .
389
+
390
+ -- -
391
+
392
+ - ` redirectUrlComplete `
393
+ - ` string `
394
+
395
+ The full URL or path to navigate to after the OAuth or SAML flow completes .
396
+
397
+ -- -
398
+
399
+ - ` strategy `
400
+ - ` 'oauth_<provider>' | 'saml' | 'enterprise_sso' `
401
+
402
+ The strategy to use for authentication . The following strategies are supported :
403
+
404
+ - ` 'oauth_<provider>' ` : The user will be authenticated with their [social connection account ](/ docs / authentication / social - connections / oauth ). See a list of [supported values for ` <provider> ` ](/ docs / references / javascript / types / sso ).
405
+ - ` 'saml' ` (deprecated ): ** Deprecated in favor of ` 'enterprise_sso' ` .** The user will be authenticated with their [SAML account ](/ docs / authentication / enterprise - connections / overview #saml ).
406
+ - ` 'enterprise_sso' ` : The user will be authenticated either through SAML or OIDC depending on the configuration of their [enterprise SSO account ](/ docs / authentication / enterprise - connections / overview ).
407
+
408
+ -- -
409
+
410
+ - ` continueSignUp? `
411
+ - ` boolean | undefined `
412
+
413
+ Whether to continue (i .e . PATCH ) an existing ` SignUp ` (if present ) or create a new ` SignUp ` .
414
+
415
+ -- -
416
+
417
+ - ` emailAddress? `
418
+ - ` string | undefined `
419
+
420
+ Email address to use for targeting an enterprise connection at sign - up .
421
+
422
+ -- -
423
+
424
+ - ` identifier? `
425
+ - ` string | undefined `
426
+
427
+ Identifier to use for targeting an enterprise connection at sign - up .
428
+
429
+ -- -
430
+
431
+ - ` legalAccepted? `
432
+ - ` boolean `
433
+
434
+ A boolean indicating whether the user has agreed to the [legal compliance ](/ docs / authentication / configuration / legal - compliance ) documents .
435
+
436
+ -- -
437
+
438
+ - ` popup? `
439
+ - ` Window `
440
+
441
+ A reference to a popup window opened via ` window.open() ` .
442
+ < / Properties >
443
+
444
+ #### Example
445
+
446
+ For OAuth connections , see the [custom flow for OAuth connections ](/ docs / custom - flows / oauth - connections ).
447
+ For enterprise connections , see the [custom flow for enterprise connections ](/ docs / custom - flows / enterprise - connections ).
448
+
374
449
### ` authenticateWithWeb3() `
375
450
376
451
Initiates a Web3 authentication flow by verifying the user ' s ownership of a blockchain wallet address through cryptographic signature verification. This method enables decentralized authentication without requiring traditional credentials.
0 commit comments