test: add magic link test

This commit is contained in:
Lucas.Xu 2024-04-10 10:34:44 +08:00
parent 09469e86ca
commit 73e4d28500
1 changed files with 8 additions and 0 deletions

View File

@ -101,3 +101,11 @@ async fn sign_in_with_url() {
let is_new = c.sign_in_with_url(&sign_in_url).await.unwrap();
assert!(is_new);
}
#[tokio::test]
async fn sign_in_with_magic_link() {
let c = localhost_client();
let email = generate_unique_email();
let resp = c.sign_in_with_magic_link(&email, None).await;
assert!(resp.is_ok());
}