Skip to content

Query on Cognito auth code generated for React frontend #680

Closed Answered by agdimech
himan085 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Himanshu!

This is a great question. The reason is that this code existed prior to this PR in aws-northstar which changed the getAuthenticatorUser from optional to required.

You are 100% right though, these checks are no longer required given aws-northstar guarantees them to be present now - we just haven't changed the website code as it doesn't harm anything :)

Feel free to open a PR to remove this as that would be greatly appreciated!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@agdimech
Comment options

Answer selected by agdimech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants