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:
parent
8dc166fad4
commit
1668c8dedd
@ -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('.');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user