add copy jwt

This commit is contained in:
zypherift
2026-08-28 13:12:40 +02:00
parent eccdf90fd8
commit 5320625d83

View File

@@ -298,6 +298,26 @@ class _DebugScreen extends FirkaState<DebugScreen> {
);
},
child: const Text('Epikus jegyszerzés (card face debug)'),
),
ElevatedButton(
onPressed: () async {
final token = widget.data.settings.getSelectedToken();
if (token == null) {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(content: Text('No token available to copy')),
);
return;
}
await Clipboard.setData(
ClipboardData(text: token.accessToken),
);
if (!context.mounted) return;
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(content: Text('Access token copied')),
);
},
child: const Text('Copy JWT'),
),
ElevatedButton(
onPressed: () {