EdwinN1337
06/13/2022, 9:53 AMjs
if (platform === 'APP') {
url.searchParams.append('redirect_uri', `${APP_BUNDLE_URL}/auth/callback/${provider}`)
await openAppBrowser(url.href)
}
if (platform !== 'APP') {
url.searchParams.append('redirect_uri', `${FRONTEND_URL}/auth/callback/${provider}`)
window.location.href = url.href
}
I was thinking of initliazing a different backendConfig based on the request? Not sure if that's the right approach?
Anyone have done this before?rp
06/13/2022, 10:16 AMEdwinN1337
06/13/2022, 10:31 AM