providers/dribbble
DribbbleProfile
延伸
Record
<string
,any
>
屬性
avatar_url
avatar_url: string;
email: string;
id
id: number;
name
name: string;
default()
default<P>(options): OAuthConfig<P>
將 Dribbble 登入新增至您的頁面。
設定
回呼 URL
https://example.com/api/auth/callback/dribbble
設定
import { Auth } from "@auth/core"
import Dribbble from "@auth/core/providers/dribbble"
const request = new Request(origin)
const response = await Auth(request, {
providers: [
Dribbble({
clientId: DRIBBBLE_CLIENT_ID,
clientSecret: DRIBBBLE_CLIENT_SECRET,
}),
],
})
資源
注意事項
預設情況下,Auth.js 假設 GitHub 供應商是基於 OAuth 2 規範。
💡
Dribbble 供應商隨附 預設設定。若要覆寫您的使用案例的預設值,請查看自訂內建的 OAuth 供應商。
💡
您可以選擇性地將範圍設定為 public upload
以獲得更進階的情境。如果省略,預設的 public
範圍將用於驗證目的。
類型參數
類型參數 |
---|
P 延伸 DribbbleProfile |
參數
參數 | 類型 |
---|---|
options | OAuthUserConfig <P > & { scope : "public" | "public upload" ; } |
回傳
OAuthConfig
<P
>