diff options
Diffstat (limited to 'azalea-auth/src')
| -rwxr-xr-x | azalea-auth/src/sessionserver.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/azalea-auth/src/sessionserver.rs b/azalea-auth/src/sessionserver.rs index e6469cef..9c73fbf0 100755 --- a/azalea-auth/src/sessionserver.rs +++ b/azalea-auth/src/sessionserver.rs @@ -69,6 +69,15 @@ pub async fn join( private_key, )); + join_with_server_id_hash(&client, access_token, uuid, &server_hash).await +} + +pub async fn join_with_server_id_hash( + client: &reqwest::Client, + access_token: &str, + uuid: &Uuid, + server_hash: &str, +) -> Result<(), ClientSessionServerError> { let mut encode_buffer = Uuid::encode_buffer(); let undashed_uuid = uuid.simple().encode_lower(&mut encode_buffer); |
