extension: [connect] Login fails on mobile
Using connect library on mobile (chrome and firefox on Android) fails to handle the pending sign in.
A tab with the auth response is opened, however, the onFinish function is not called. This works on desktop e.g. for http://coronatrackerv1.s3-website-us-east-1.amazonaws.com/
Possible work around, check manually for userSession.isPendingSignin()
and call userSession.handlePendingSignIn()
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 22 (9 by maintainers)
Mobile login is not working even if you have
redirectTo
param inAuthOptions
. I think it’s becausedidSendMessageBack
infinalizeAuthResponse
below could be set totrue
even if thesource.postMessage
is not successful. https://github.com/blockstack/ux/blob/f1921a7b109afb6c149e5f67df33ef52867cab96/packages/app/src/common/utils.ts#L53-L78Good catch @muneebm . I have an idea for how I could fix that.
Has the Connect team been able to replicate the problem of login failing on mobile? I hear login still fails on mobile when using Banter.
Yes, the fix here is that you’ll need to implement the usual
userSession.handlePendingSignIn()
flow inside of your app, on page load. It’s possible we could have Connect do this automatically, but I’m not 100% sure that’s the best idea. I would appreciate feedback on that idea, but in the meantime, I’d suggest implementing that manually in your app to get it fixed ASAP.@hstove @timstackblock sounds like its not working again