使用新的JS 客户端库进行 Sign in with Google,我找不到在不渲染按钮的情况下启动登录流程的方法,并且该按钮无法进行足够的自定义以符合网站的美观。
有没有办法在没有按钮的情况下触发身份验证流程?例如:
// instead of:
window.google.accounts.id.renderButton(divRef.current, {
theme: 'outline',
size: 'large',
width: divRef.current.clientWidth,
text: 'continue_with',
});
// I want something like:
window.google.accounts.id.authenticate();
Run Code Online (Sandbox Code Playgroud)