Skip to content

feat(sdk): Add Client::logout() to log out regardless of the auth API#4886

Merged
poljar merged 3 commits intomatrix-org:mainfrom
zecakeh:logout
Apr 4, 2025
Merged

feat(sdk): Add Client::logout() to log out regardless of the auth API#4886
poljar merged 3 commits intomatrix-org:mainfrom
zecakeh:logout

Conversation

@zecakeh
Copy link
Copy Markdown
Collaborator

@zecakeh zecakeh commented Apr 4, 2025

It simplifies code for users, and avoids to have to match on AuthApi, which is a non-exhaustive enum.

zecakeh added 2 commits April 4, 2025 12:49
It simplifies code for users, and avoids to have to match on
`AuthApi`, which is a non-exhaustive enum.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
@zecakeh zecakeh requested a review from a team as a code owner April 4, 2025 10:54
@zecakeh zecakeh requested review from stefanceriu and removed request for a team April 4, 2025 10:54
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.85%. Comparing base (13ca27d) to head (e6218c7).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4886      +/-   ##
==========================================
+ Coverage   85.82%   85.85%   +0.03%     
==========================================
  Files         299      299              
  Lines       35233    35245      +12     
==========================================
+ Hits        30239    30261      +22     
+ Misses       4994     4984      -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@poljar poljar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's indeed a nice simplification.

@poljar poljar merged commit 2b450a0 into matrix-org:main Apr 4, 2025
42 checks passed
@zecakeh zecakeh deleted the logout branch April 4, 2025 11:25
zecakeh added a commit to zecakeh/matrix-rust-sdk that referenced this pull request Apr 4, 2025
Introduced by merging matrix-org#4886 and matrix-org#4887 around the same time.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
poljar pushed a commit that referenced this pull request Apr 4, 2025
Introduced by merging #4886 and #4887 around the same time.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants