export default () => { const redirectUri = window.location.origin + '/user/welcome' window.location.href = window._CONFIG.thirdLoginUrl + '?response_type=code&active_type=user&state=' + Math.random().toString(16).slice(2) + '&client_id=' + window._CONFIG.clientId + '&redirect_uri=' + btoa(encodeURI(redirectUri)) }