Use {{ grav.user.username }} and the other properties of the User object (you can check which ones are availble by doing {{dump(grav.user)}} with the debug bar.
I would start looking at grav login plugin.
check the template file such as templates/partials/login-status.html.twig.
You will see that you can use the following: