AuthBot icon indicating copy to clipboard operation
AuthBot copied to clipboard

How to get Username

Open anhpnguyen opened this issue 7 years ago • 1 comments

I'm using Authbot simply for Authentication. How do I get the username from AuthBot once they log in? username

anhpnguyen avatar Feb 12 '18 20:02 anhpnguyen

This isn't StackOverflow ;)

if(context.UserData.TryGetValue(ContextConstants.AuthResultKey, out AuthResult authResult))
{
    await context.PostAsync($"You are {authResult.UserName}! :O");
}

ruisilva450 avatar Feb 14 '18 00:02 ruisilva450