productdevbook
01/04/2023, 5:21 AMts
async function onGithubPressed() {
const authorisationURL = props.mobile
? `${MOBILE_URL}/auth/callback/github`
: `${FRONTEND_URL}/auth/callback/github`
const authUrl = await ThirdPartyEmailPassword.getAuthorisationURLWithQueryParamsAndSetState({
providerId: 'github',
// This is where github should redirect the user back after login or error.
// This URL goes on the github dashboard as well.
authorisationURL,
})
if (props.mobile)
window.open(authUrl, '_self')
else
window.location.assign(authUrl)
}
Failed to fetchrp
01/04/2023, 5:22 AMproductdevbook
01/04/2023, 5:24 AMrp
01/04/2023, 5:24 AMproductdevbook
01/04/2023, 5:24 AMrp
01/04/2023, 5:24 AMproductdevbook
01/04/2023, 5:24 AMrp
01/04/2023, 5:32 AMproductdevbook
01/04/2023, 5:34 AM