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