1
0
mirror of https://github.com/pcvolkmer/arsnova-client.git synced 2025-04-19 19:16:51 +00:00

feat: make get_user_id() public available

This commit is contained in:
Paul-Christian Volkmer 2023-12-30 22:27:46 +01:00
parent 8dc166fad4
commit 1668c8dedd

View File

@ -329,7 +329,7 @@ impl Client<LoggedIn> {
/// Get user ID extracted from client token /// Get user ID extracted from client token
/// ///
/// This method fails if the token cannot be parsed /// This method fails if the token cannot be parsed
fn get_user_id(&self) -> Result<String, ClientError> { pub fn get_user_id(&self) -> Result<String, ClientError> {
let token = self.token.clone().unwrap_or_default(); let token = self.token.clone().unwrap_or_default();
let mut token_parts = token.split('.'); let mut token_parts = token.split('.');