Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

How to get Username #48

Open
anhpnguyen opened this issue Feb 12, 2018 · 1 comment
Open

How to get Username #48

anhpnguyen opened this issue Feb 12, 2018 · 1 comment

Comments

@anhpnguyen
Copy link

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

@ruisilva450
Copy link

This isn't StackOverflow ;)

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants