Login_name or username for OpenId login?

When user login using OpenId, does gitea uses the login_name (Authentication Sign-in Name) for login or username?
It seems like it’s using login_name based on the code, but I’d like to confirm.