Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Correctly logout OAuth client on logout notification
When doing a logout we wan't the extension to also logout the Cozy's Oauth client This was done from the `runtime.background.ts` file so the action is done when the user clicks on the Settings logout button But this is not the only scenario that can produce a logout This is the case when the user changes their password from cozy-settings. In that scenario, the cozy-stack will send a `logout` notification to the Bitwarden's realtime stream, and so the extension will react by doing a logout To have the OAuth logout on both scenario we want to move the related code into `main.background.ts`
- Loading branch information