跳至內容
從 NextAuth.js v4 遷移?請閱讀 我們的遷移指南.

webauthn

signIn()

signIn<P>(
   provider?, 
   options?, 
authorizationParams?): Promise<P extends RedirectableProviderType ? SignInResponse | undefined : undefined>

啟動登入流程或將使用者傳送到列出所有可能供應商的登入頁面。處理 CSRF 保護。

類型參數

類型參數
P extends undefined | RedirectableProviderTypeundefined

參數

參數類型
provider?LiteralUnion<P extends RedirectableProviderType ? BuiltInProviderType | P : BuiltInProviderType>
options?SignInOptions
authorizationParams?SignInAuthorizationParams

回傳值

Promise<P extends RedirectableProviderType ? SignInResponse | undefined : undefined>

Auth.js © Balázs Orbán 與團隊 -2024