mirror of
https://github.com/aljazceru/react-native-pubky.git
synced 2025-12-18 15:14:20 +01:00
fix: fix parse_pubky_auth_url
Adds caps check to parse_pubky_auth_url. Bumps version to 0.2.2.
This commit is contained in:
@@ -99,6 +99,7 @@ fn parse_pubky_auth_url(url_str: &str) -> Result<PubkyAuthDetails, String> {
|
||||
|
||||
let capabilities_str = query_params
|
||||
.get("capabilities")
|
||||
.or_else(|| query_params.get("caps"))
|
||||
.cloned()
|
||||
.ok_or_else(|| "Missing capabilities".to_string())?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user