@@ -95,6 +95,7 @@ import type {
9595 LoadedClerk ,
9696 NavigateOptions ,
9797 OAuthApplicationNamespace ,
98+ OAuthConsentProps ,
9899 OrganizationListProps ,
99100 OrganizationProfileProps ,
100101 OrganizationResource ,
@@ -1348,7 +1349,7 @@ export class Clerk implements ClerkInterface {
13481349 void this . #clerkUI?. then ( ui => ui . ensureMounted ( ) ) . then ( controls => controls . unmountComponent ( { node } ) ) ;
13491350 } ;
13501351
1351- public __internal_mountOAuthConsent = ( node : HTMLDivElement , props ?: __internal_OAuthConsentProps ) => {
1352+ public mountOAuthConsent = ( node : HTMLDivElement , props ?: OAuthConsentProps ) => {
13521353 if ( noUserExists ( this ) ) {
13531354 if ( this . #instanceType === 'development' ) {
13541355 throw new ClerkRuntimeError ( warnings . cannotRenderOAuthConsentComponentWhenUserDoesNotExist , {
@@ -1372,10 +1373,24 @@ export class Clerk implements ClerkInterface {
13721373 ) ;
13731374 } ;
13741375
1375- public __internal_unmountOAuthConsent = ( node : HTMLDivElement ) => {
1376+ public unmountOAuthConsent = ( node : HTMLDivElement ) => {
13761377 void this . #clerkUI?. then ( ui => ui . ensureMounted ( ) ) . then ( controls => controls . unmountComponent ( { node } ) ) ;
13771378 } ;
13781379
1380+ /**
1381+ * @deprecated Use mountOAuthConsent instead.
1382+ */
1383+ public __internal_mountOAuthConsent = ( node : HTMLDivElement , props ?: __internal_OAuthConsentProps ) => {
1384+ return this . mountOAuthConsent ( node , props ) ;
1385+ } ;
1386+
1387+ /**
1388+ * @deprecated Use unmountOAuthConsent instead.
1389+ */
1390+ public __internal_unmountOAuthConsent = ( node : HTMLDivElement ) => {
1391+ return this . unmountOAuthConsent ( node ) ;
1392+ } ;
1393+
13791394 /**
13801395 * Mount an API keys component at the target element.
13811396 * @param targetNode Target to mount the APIKeys component.
0 commit comments