Use localStorage to save userState before redirecting to Google OAuth2