DarrenBaldwin07 / clerk-rs

A official community-maintained Clerk SDK for Rust
https://crates.io/crates/clerk-rs
MIT License
76 stars 24 forks source link

Missing `phone_code` and `email_code` verification strategies #22

Closed TmLev closed 8 months ago

TmLev commented 9 months ago

I was trying to list all users via clerk_rs::apis::users_api::User::get_user_list, and the response deserialisation failed with this error:

Serde(
    Error(
        "unknown variant `email_code`, expected `admin` or `from_oauth_google`", 
        line: 1, 
        column: 754,
    )
)

Based on the Backend API docs, they have two variants of verification:

OTP Admin
phone_code, email_code admin
image image

I also can't find the from_oauth_google variant.

DarrenBaldwin07 commented 8 months ago

Thanks for opening @TmLev. I'll be resolving this soon in 0.2.0 when we realign with clerk's new api spec

DarrenBaldwin07 commented 8 months ago

This should now be fixed in 0.2.2 https://crates.io/crates/clerk-rs/0.2.2

sjmiller609 commented 8 months ago

As of version 0.2.3 unknown variants for strategy and identification_link.type deserialize to "Other" variant. That should fix issues with listing users.