Skip to content

Commit

Permalink
docs: Fix the OIDC QR code login example in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
poljar committed Jul 16, 2024
1 parent 5dbd5f1 commit 84c9280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/matrix-sdk/src/oidc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,13 +384,13 @@ impl Oidc {
/// let qr_code_data = QrCodeData::from_bytes(bytes)?;
///
/// // Fetch the homeserver out of the parsed QR code data.
/// let QrCodeModeData::Reciprocate{ homeserver_url } = qr_code_data.mode_data else {
/// let QrCodeModeData::Reciprocate{ server_name } = qr_code_data.mode_data else {
/// bail!("The QR code is invalid, we did not receive a homeserver in the QR code.");
/// };
///
/// // Build the client as usual.
/// let client = Client::builder()
/// .homeserver_url(homeserver_url)
/// .server_name_or_homeserver_url(server_name)
/// .handle_refresh_tokens()
/// .build()
/// .await?;
Expand Down

0 comments on commit 84c9280

Please sign in to comment.