Skip to content

Update bitwarden extension#29395

Merged
raycastbot merged 3 commits into
raycast:mainfrom
jomifepe:ext/bitwarden
Jul 13, 2026
Merged

Update bitwarden extension#29395
raycastbot merged 3 commits into
raycast:mainfrom
jomifepe:ext/bitwarden

Conversation

@jomifepe

@jomifepe jomifepe commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes #29056

Fixes authenticator TOTP generation when secrets contain spaces. Bitwarden accepts spaced secrets, but otplib does not, so Raycast now strips whitespace before generating codes.

Checklist

- fix: strip whitespace from TOTP secrets
- Pull contributions
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: bitwarden Issues related to the bitwarden extension platform: macOS platform: Windows OP is author The OP of the PR is the author of the extension labels Jul 12, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Thank you for the update! 🎉

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days.

@jomifepe jomifepe marked this pull request as ready for review July 12, 2026 22:23
@greptile-apps

greptile-apps Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR updates Bitwarden TOTP handling for secrets with spaces.

  • Strips whitespace from extracted TOTP secrets before generating codes.
  • Applies the same normalization to regular and Steam Guard generators.
  • Adds tests for spaced raw secrets and spaced otpauth URI secrets.
  • Updates the Bitwarden changelog for the fix.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
extensions/bitwarden/src/utils/authenticatorTotp.ts Normalizes whitespace in TOTP secrets before code generation.
extensions/bitwarden/src/utils/authenticatorTotp.test.ts Adds tests for spaced raw and otpauth TOTP secrets.
extensions/bitwarden/CHANGELOG.md Adds a changelog entry for the TOTP whitespace fix.

Reviews (3): Last reviewed commit: "Update CHANGELOG.md" | Re-trigger Greptile

@0xdhrv 0xdhrv self-assigned this Jul 13, 2026

@0xdhrv 0xdhrv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me, approved ✅

@raycastbot raycastbot merged commit f861181 into raycast:main Jul 13, 2026
3 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Published to the Raycast Store:
https://raycast.com/jomifepe/bitwarden

@raycastbot

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension: bitwarden Issues related to the bitwarden extension extension fix / improvement Label for PRs with extension's fix improvements OP is author The OP of the PR is the author of the extension platform: macOS platform: Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bitwarden Vault] Authenticator fails with spaces

3 participants