After I reinstall Vaultwarden, I can't authenticate to the admin panel.
On first launch, Vaultwarden copy the AUTH_TOKEN in /home/yunohost.app/vaultwarden/config.json.
When you remove the app, this folder is not cleared.
After you reinstalled the app, Vaultwarden reads the auth_token from /home/yunohost.app/vaultwarden/config.json and ignore the AUTH_TOKEN from .env.
Context
Hardware: VPS
YunoHost version: 11.2.4
I have access to my server: SSH / webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
Using, or trying to install package version/branch: 1.29.1~ynh1
Steps to reproduce
Install vaultwarden on a fresh yunohost
You can log-in with the auth_token received by mail
Remove and install vaultwarden again
You can't login with the new auth_token
Expected behavior
The /home/yunohost.app/vaultwarden/ folder should be delete when we remove the app.
Describe the bug
After I reinstall Vaultwarden, I can't authenticate to the admin panel. On first launch, Vaultwarden copy the
AUTH_TOKEN
in/home/yunohost.app/vaultwarden/config.json
. When you remove the app, this folder is not cleared. After you reinstalled the app, Vaultwarden reads theauth_token
from/home/yunohost.app/vaultwarden/config.json
and ignore theAUTH_TOKEN
from.env
.Context
Steps to reproduce
Expected behavior
The
/home/yunohost.app/vaultwarden/
folder should be delete when we remove the app.