diff --git a/firka/lib/ui/phone/screens/debug/debug_screen.dart b/firka/lib/ui/phone/screens/debug/debug_screen.dart index a74a282b..5d71f25c 100644 --- a/firka/lib/ui/phone/screens/debug/debug_screen.dart +++ b/firka/lib/ui/phone/screens/debug/debug_screen.dart @@ -298,6 +298,26 @@ class _DebugScreen extends FirkaState { ); }, 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: () {