-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See if login time can be reduced #41
Comments
For the optimistic UI part, see #162. Regarding the Auth0 call, currently the access token is opaque and there is no choice but to call Auth0 to validate it. However, we could change the authentication configuration to request an access token in the JWT format. That would allow |
@jlandure Gave me another idea. The Auth0 domain is hosted in Europe, while the Cloud function is hosted in the US. By co-locating the two we should have less latency. |
Hey @hgwood 👋 Indeed, the latency between Europe/America still remains around ~150ms. ⚡️ |
Closed by mistake. |
See #41 (comment). Also updates firebase-functions.
See #41 (comment). Also updates firebase-functions.
Login time can be quite long and this is especially annoying for this app because:
As far as I could see most of the time is waiting for the HTTP request to Auth0, so I'm not sure how we can improve, but I'd be happy for someone to have another look.
As an alternative, I guess we could take the optimistic UI approach and show the vote screen immediately after the user comes back from Auth0, not waiting for the HTTP response, and then only if login is rejected the app can show an alert and reload, or something like that.
The text was updated successfully, but these errors were encountered: