@@ -2071,51 +2071,51 @@ const CREATE_TENANT = new ApiSettings('/tenants', 'POST')
2071
2071
}
2072
2072
} ) ;
2073
2073
2074
- /** Instantiates the getPasskeyConfig endpoint settings. */
2074
+ /** Instantiates the GET_PASSKEY_CONFIG endpoint settings. */
2075
2075
const GET_PASSKEY_CONFIG = new ApiSettings ( '/passkeyConfig' , 'GET' )
2076
2076
. setResponseValidator ( ( response : any ) => {
2077
- // Response should always contain at least the config name .
2077
+ // Validate the response for GET_PASSKEY_CONFIG .
2078
2078
if ( ! validator . isNonEmptyString ( response . name ) ) {
2079
2079
throw new FirebaseAuthError (
2080
2080
AuthClientErrorCode . INTERNAL_ERROR ,
2081
- 'INTERNAL ASSERT FAILED: Unable to get project config' ,
2081
+ 'INTERNAL ASSERT FAILED: Unable to get passkey config' ,
2082
2082
) ;
2083
2083
}
2084
2084
} ) ;
2085
2085
2086
- /** Instantiates the getPasskeyConfig endpoint settings. */
2086
+ /** Instantiates the GET_TENANT_PASSKEY_CONFIG endpoint settings. */
2087
2087
const GET_TENANT_PASSKEY_CONFIG = new ApiSettings ( '/tenants/{tenantId}/passkeyConfig' , 'GET' )
2088
2088
. setResponseValidator ( ( response : any ) => {
2089
- // Response should always contain at least the config name .
2089
+ // Validate the response for GET_TENANT_PASSKEY_CONFIG .
2090
2090
if ( ! validator . isNonEmptyString ( response . name ) ) {
2091
2091
throw new FirebaseAuthError (
2092
2092
AuthClientErrorCode . INTERNAL_ERROR ,
2093
- 'INTERNAL ASSERT FAILED: Unable to get project config' ,
2093
+ 'INTERNAL ASSERT FAILED: Unable to get tenant passkey config' ,
2094
2094
) ;
2095
2095
}
2096
2096
} ) ;
2097
2097
2098
- /** Instantiates the getPasskeyConfig endpoint settings. */
2098
+ /** Instantiates the UPDATE_PASSKEY_CONFIG endpoint settings. */
2099
2099
const UPDATE_PASSKEY_CONFIG = new ApiSettings ( '/passkeyConfig?updateMask={updateMask}' , 'PATCH' )
2100
2100
. setResponseValidator ( ( response : any ) => {
2101
- // Response should always contain at least the config name .
2101
+ // Validate the response for UPDATE_PASSKEY_CONFIG .
2102
2102
if ( ! validator . isNonEmptyString ( response . name ) ) {
2103
2103
throw new FirebaseAuthError (
2104
2104
AuthClientErrorCode . INTERNAL_ERROR ,
2105
- 'INTERNAL ASSERT FAILED: Unable to get project config' ,
2105
+ 'INTERNAL ASSERT FAILED: Unable to update passkey config' ,
2106
2106
) ;
2107
2107
}
2108
2108
} ) ;
2109
2109
2110
- /** Instantiates the getPasskeyConfig endpoint settings. */
2110
+ /** Instantiates the UPDATE_TENANT_PASSKEY_CONFIG endpoint settings. */
2111
2111
const UPDATE_TENANT_PASSKEY_CONFIG = new ApiSettings (
2112
2112
'/tenant/{tenantId}/passkeyConfig?updateMask={updateMask}' , 'PATCH' )
2113
2113
. setResponseValidator ( ( response : any ) => {
2114
- // Response should always contain at least the config name .
2114
+ // Validate the response for UPDATE_TENANT_PASSKEY_CONFIG .
2115
2115
if ( ! validator . isNonEmptyString ( response . name ) ) {
2116
2116
throw new FirebaseAuthError (
2117
2117
AuthClientErrorCode . INTERNAL_ERROR ,
2118
- 'INTERNAL ASSERT FAILED: Unable to get project config' ,
2118
+ 'INTERNAL ASSERT FAILED: Unable to update tenant passkey config' ,
2119
2119
) ;
2120
2120
}
2121
2121
} ) ;
0 commit comments