You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(accounts): add export/import commands for portable account transfer (#43)
* feat(accounts): add export/import commands for portable account transfer
Adds two new subcommands to `shard account`:
- `shard account export [-o output.json]` - Exports all accounts including
tokens to a portable JSON file. Useful for transferring accounts between
machines or backing up before system changes.
- `shard account import <file> [--replace]` - Imports accounts from an
exported JSON file. By default, skips accounts that already exist (same UUID).
Use `--replace` to overwrite existing accounts with imported data.
The exported JSON format includes:
- Account metadata (uuid, username, xuid)
- MSA tokens (access_token, refresh_token, expires_at)
- Minecraft tokens (access_token, expires_at)
Security warning is displayed after export reminding users to keep the file
secure and delete after use, as it contains sensitive authentication tokens.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* refactor(accounts): simplify merge_accounts logic
Collapse nested if statements in merge_accounts to satisfy clippy
and improve code readability.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix(accounts): properly propagate load_accounts errors during import
Replace `unwrap_or_default()` with `?` to avoid silently dropping existing
accounts when there's a keyring error during import. This matches the error
handling pattern used by all other `load_accounts` call sites.
Fixes Bugbot review comment about potential silent data loss.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* chore: bump version to 0.1.25
- Update version in launcher/Cargo.toml
- Update version in desktop/src-tauri/Cargo.toml
- Update version in desktop/package.json
- Update metainfo with release history
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Thomas Musik <music@music2music.fr>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments