Export invitation_is_trusted for wasm_bindgen

This commit is contained in:
Cecylia Bocovich 2024-01-16 14:26:29 -05:00
parent ed7c94b912
commit 1702027cb9
No known key found for this signature in database
GPG Key ID: 009DE379FD9B7B90
1 changed files with 1 additions and 0 deletions

View File

@ -796,6 +796,7 @@ pub fn get_constants() -> Result<String, JsValue> {
}
}
#[wasm_bindgen]
pub fn invitation_is_trusted(unspecified_invitation_str: String) -> Result<bool, JsValue> {
match serde_json::from_str::<Invitation>(&unspecified_invitation_str) {
Ok(_) => Ok(true),