@@ -2071,51 +2071,51 @@ const CREATE_TENANT = new ApiSettings('/tenants', 'POST')
20712071 }
20722072 } ) ;
20732073
2074- /** Instantiates the getPasskeyConfig endpoint settings. */
2074+ /** Instantiates the GET_PASSKEY_CONFIG endpoint settings. */
20752075const GET_PASSKEY_CONFIG = new ApiSettings ( '/passkeyConfig' , 'GET' )
20762076 . setResponseValidator ( ( response : any ) => {
2077- // Response should always contain at least the config name .
2077+ // Validate the response for GET_PASSKEY_CONFIG .
20782078 if ( ! validator . isNonEmptyString ( response . name ) ) {
20792079 throw new FirebaseAuthError (
20802080 AuthClientErrorCode . INTERNAL_ERROR ,
2081- 'INTERNAL ASSERT FAILED: Unable to get project config' ,
2081+ 'INTERNAL ASSERT FAILED: Unable to get passkey config' ,
20822082 ) ;
20832083 }
20842084 } ) ;
20852085
2086- /** Instantiates the getPasskeyConfig endpoint settings. */
2086+ /** Instantiates the GET_TENANT_PASSKEY_CONFIG endpoint settings. */
20872087const GET_TENANT_PASSKEY_CONFIG = new ApiSettings ( '/tenants/{tenantId}/passkeyConfig' , 'GET' )
20882088 . setResponseValidator ( ( response : any ) => {
2089- // Response should always contain at least the config name .
2089+ // Validate the response for GET_TENANT_PASSKEY_CONFIG .
20902090 if ( ! validator . isNonEmptyString ( response . name ) ) {
20912091 throw new FirebaseAuthError (
20922092 AuthClientErrorCode . INTERNAL_ERROR ,
2093- 'INTERNAL ASSERT FAILED: Unable to get project config' ,
2093+ 'INTERNAL ASSERT FAILED: Unable to get tenant passkey config' ,
20942094 ) ;
20952095 }
20962096 } ) ;
20972097
2098- /** Instantiates the getPasskeyConfig endpoint settings. */
2098+ /** Instantiates the UPDATE_PASSKEY_CONFIG endpoint settings. */
20992099const UPDATE_PASSKEY_CONFIG = new ApiSettings ( '/passkeyConfig?updateMask={updateMask}' , 'PATCH' )
21002100 . setResponseValidator ( ( response : any ) => {
2101- // Response should always contain at least the config name .
2101+ // Validate the response for UPDATE_PASSKEY_CONFIG .
21022102 if ( ! validator . isNonEmptyString ( response . name ) ) {
21032103 throw new FirebaseAuthError (
21042104 AuthClientErrorCode . INTERNAL_ERROR ,
2105- 'INTERNAL ASSERT FAILED: Unable to get project config' ,
2105+ 'INTERNAL ASSERT FAILED: Unable to update passkey config' ,
21062106 ) ;
21072107 }
21082108 } ) ;
21092109
2110- /** Instantiates the getPasskeyConfig endpoint settings. */
2110+ /** Instantiates the UPDATE_TENANT_PASSKEY_CONFIG endpoint settings. */
21112111const UPDATE_TENANT_PASSKEY_CONFIG = new ApiSettings (
21122112 '/tenant/{tenantId}/passkeyConfig?updateMask={updateMask}' , 'PATCH' )
21132113 . setResponseValidator ( ( response : any ) => {
2114- // Response should always contain at least the config name .
2114+ // Validate the response for UPDATE_TENANT_PASSKEY_CONFIG .
21152115 if ( ! validator . isNonEmptyString ( response . name ) ) {
21162116 throw new FirebaseAuthError (
21172117 AuthClientErrorCode . INTERNAL_ERROR ,
2118- 'INTERNAL ASSERT FAILED: Unable to get project config' ,
2118+ 'INTERNAL ASSERT FAILED: Unable to update tenant passkey config' ,
21192119 ) ;
21202120 }
21212121 } ) ;
0 commit comments