-
When PDK generates code for the frontend React website, it checks if the function
I am not able to understand why the check The same question applies to the sign out code Please let me know if you have context on this, thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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! |
Beta Was this translation helpful? Give feedback.
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!