Skip to content

Commit 69ec101

Browse files
committed
usage of SecureSSOUserData.as_json_base64
1 parent e594e76 commit 69ec101

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/src/sso/fastcomments_sso.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ impl FastCommentsSSO {
4545
.unwrap()
4646
.as_millis() as u64;
4747

48-
let user_data_json =
49-
serde_json::to_string(secure_sso_user_data).expect("Failed to serialize user data");
50-
let user_data_string = BASE64_STANDARD.encode(user_data_json.as_bytes());
48+
let user_data_string = secure_sso_user_data.as_json_base64();
5149

5250
// Create verification hash
5351
let hash = create_verification_hash(&api_key, timestamp, &user_data_string)?;

0 commit comments

Comments
 (0)