Method to actually retrieve stored auth token to compare it against one sent
This commit is contained in:
@@ -25,6 +25,13 @@ impl ClientLedger {
|
||||
self.inner.lock().await.0.contains_key(client_address)
|
||||
}
|
||||
|
||||
pub(crate) async fn retrieve_token(
|
||||
&self,
|
||||
client_address: &DestinationAddressBytes,
|
||||
) -> Option<&AuthToken> {
|
||||
self.inner.lock().await.0.get(client_address)
|
||||
}
|
||||
|
||||
pub(crate) async fn insert_token(
|
||||
&mut self,
|
||||
auth_token: AuthToken,
|
||||
|
||||
Reference in New Issue
Block a user