supertokens-auth-react icon indicating copy to clipboard operation
supertokens-auth-react copied to clipboard

Preload auth URL

Open morgante opened this issue 2 years ago • 0 comments

Currently, using GitHub auth requires making a backend API call after the user clicks log in (but before it redirects to GitHub). This adds anywhere from 40–4000ms of latency that doesn't seem necessary in the user-facing flow.

Considering most people who come to the login page will in fact click log in, I suggest pre-fetching the auth URL when the log in component first loads.

morgante avatar Feb 10 '23 19:02 morgante