Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将 Okta 与 next-auth.js 一起使用。由于我只使用 1 个提供程序(我将在 Okta 登录中使用更多提供程序),我可以跳过此页面并直接转到 Okta 登录页面吗?如果是,如何?
您可以利用signIn直接跳到提供商登录页面
signIn
<button type="button" onClick={() => signIn([provider])}>Sign in with Provider</a>
替换provider为provider.id您要使用的。在您的情况下,它将是signIn('okta')
provider
provider.id
signIn('okta')
参考:https ://next-auth.js.org/getting-started/client#signin