Deleted User
03/28/2022, 8:08 AMDeleted User
03/28/2022, 8:09 AManubhav
03/28/2022, 8:09 AMnkshah2
03/28/2022, 8:09 AMDeleted User
03/28/2022, 8:14 AMDeleted User
03/28/2022, 8:15 AMporcellus
03/28/2022, 8:36 AMDeleted User
03/28/2022, 8:36 AMporcellus
03/28/2022, 8:37 AMTajin
03/28/2022, 9:02 AMEmailPasswordSignUp_Override: ({ DefaultComponent, ...props }) => {
/* if the user visits the /signup route, we want to show the
default implementation. If thy visit the /signin?show=signup
route, we want to show the sign in UI, so we redirect them to /signin
which shows the sign in UI.
*/
const [showUI, setShowUI] = useState(false);
useEffect(() => {
if (window.location.pathname === "/signup") {
setShowUI(true);
} else if (window.location.pathname === "/signin") {
window.location.href = "/signin";
} else {
setShowUI(true);
}
}, []);
if (showUI) {
return <DefaultComponent {...props} />;
} else {
return null;
}
},
is this part of the comment correct? "If thy visit the /signin?show=signup route, we want to show the sign in UI, so we redirect them to /signin which shows the sign in UI."
I'm confusedrp
03/28/2022, 9:24 AMfsimoes
03/28/2022, 2:20 PMfrom django.contrib.auth.models import User
async def get_profile_info(self, auth_code_response: Dict[str, Any], user_context: Dict[str, Any]) -> UserInfo:
user = something_that_gets_users(auth_code_response["access_token"])
User.objects.create(username=user.id, email=user.personal.email) # Write to database
return UserInfo(user_id=user.id,
email=UserInfoEmail(email=user.personal.email, email_verified=True))
Problem:
It raises AppRegistryNotReady("Apps aren't loaded yet.")
fsimoes
03/28/2022, 3:38 PMInvader
03/28/2022, 7:15 PMrp
03/28/2022, 7:28 PMjlt
03/29/2022, 12:37 AMrp
03/29/2022, 4:12 AManubhav
03/29/2022, 5:10 AMrp
03/29/2022, 5:36 AMYashwant
03/29/2022, 8:15 AMAdiboi
03/29/2022, 12:28 PMeeshaan
03/29/2022, 6:57 PMeeshaan
03/29/2022, 6:59 PMeeshaan
03/29/2022, 6:59 PMeeshaan
03/29/2022, 7:23 PMeeshaan
03/29/2022, 7:24 PMaxua
03/30/2022, 12:17 PMnkshah2
03/30/2022, 12:22 PMKartik
03/30/2022, 3:27 PMFrAgOrDiE
03/30/2022, 4:52 PMresp.headersSent
being true in the authentication guard. How does this work?