Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Username from getUser and adminGetUser #334

Open
paullallier opened this issue Nov 21, 2022 · 2 comments
Open

Username from getUser and adminGetUser #334

paullallier opened this issue Nov 21, 2022 · 2 comments

Comments

@paullallier
Copy link
Contributor

The Cognito documentation is frustratingly lacking, but I think getUser and adminGetUser return the internal Cognito username (sub - a UUIDv4) rather than the username the user logs in with.

Potentially getUser could just return the value from decodedToken.sub, but I'm less sure where adminGetUser would find the sub, since it doesn't have the access token.

@paullallier
Copy link
Contributor Author

I think this PR fixes it. Beware that my code might not be idiomatic...

@paullallier
Copy link
Contributor Author

Oh, I see you might have patchy notifications, @jagregory, so tagging you just in case.

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

No branches or pull requests

1 participant