providers/box
default()
default(options): OAuthConfig<Record<string, any>>
在您的頁面中新增 Box 登入。
設定
回呼網址
https://example.com/api/auth/callback/box
設定
import { Auth } from "@auth/core"
import Box from "@auth/core/providers/box"
const request = new Request(origin)
const response = await Auth(request, {
providers: [
Box({ clientId: BOX_CLIENT_ID, clientSecret: BOX_CLIENT_SECRET }),
],
})
資源
注意事項
預設情況下,Auth.js 假設 Box 提供者是基於 OAuth 2 規格。
💡
Box 提供者帶有預設設定。若要覆寫您使用案例的預設值,請查看自訂內建 OAuth 提供者。
參數
參數 | 類型 |
---|---|
選項 | OAuthUserConfig <Record <string , any >> |
回傳
OAuthConfig
<Record
<string
, any
>>