providers/42-school
成就
屬性
描述
description: string;
ID
id: number;
圖片
image: null | string;
種類
kind: "scolarity" | "project" | "pedagogy";
名稱
name: string;
成功次數
nbr_of_success: null | number;
等級
tier:
| "none"
| "medium"
| "challenge"
| "easy"
| "hard";
使用者網址
users_url: string;
可見
visible: boolean;
校園
屬性
啟用
active: boolean;
地址
address: string;
城市
city: string;
國家
country: string;
預設隱藏電話
default_hidden_phone: boolean;
電子郵件擴展名
email_extension: string;
facebook: string;
ID
id: number;
語言
language: {
created_at: string;
id: number;
identifier: string;
name: string;
updated_at: null | string;
};
建立時間
created_at: string;
ID
id: number;
識別碼
identifier: string;
名稱
name: string;
更新時間
updated_at: null | string;
名稱
name: string;
時區
time_zone: string;
twitter: string;
使用者人數
users_count: number;
vogsphere ID
vogsphere_id: number;
網站
website: string;
郵遞區號
zip: string;
校園使用者
屬性
校園 ID
campus_id: number;
建立時間
created_at: string;
ID
id: number;
是否為主要
is_primary: boolean;
更新時間
updated_at: null | string;
使用者 ID
user_id: number;
課程使用者
屬性
開始時間
begin_at: null | string;
已黑洞化時間
blackholed_at: null | string;
建立時間
created_at: string;
課程
cursus: {
created_at: string;
id: number;
name: string;
slug: string;
};
建立時間
created_at: string;
ID
id: number;
名稱
name: string;
代稱
slug: string;
課程 ID
cursus_id: number;
結束時間
end_at: null | string;
年級
grade: null | string;
是否有聯盟
has_coalition: boolean;
ID
id: number;
等級
level: number;
技能
skills: {
id: number;
level: number;
name: string;
}[];
更新時間
updated_at: null | string;
使用者
user: UserData;
專業知識使用者
屬性
聯絡我
contact_me: boolean;
建立時間
created_at: string;
專業知識 ID
expertise_id: number;
ID
id: number;
感興趣
interested: boolean;
使用者 ID
user_id: number;
值
value: number;
FortyTwoProfile
繼承自
屬性
成就
achievements: Achievement[];
校友
alumni: boolean;
繼承自
匿名化日期
anonymize_date: string;
繼承自
校區
campus: Campus[];
校區使用者
campus_users: CampusUser[];
糾正點數
correction_point: number;
繼承自
建立時間
created_at: string;
繼承自
課程使用者
cursus_users: CursusUser[];
顯示名稱
displayname: string;
繼承自
電子郵件
email: string;
繼承自
專業知識使用者
expertises_users: ExpertisesUser[];
名字
first_name: string;
繼承自
群組
groups: {
id: string;
name: string;
}[];
ID
id: number;
繼承自
圖片
image: Image;
圖片網址
image_url: null | string;
繼承自
是否已啟動?
is_launched?: boolean;
繼承自
語言使用者
languages_users: LanguagesUser[];
姓氏
last_name: string;
繼承自
位置
location: null | string;
繼承自
登入名稱
login: string;
繼承自
合作關係
partnerships: any[];
受贊助
patroned: any[];
贊助中
patroning: any[];
電話號碼
phone: null | string;
繼承自
入學月份
pool_month: null | string;
繼承自
入學年份
pool_year: null | string;
繼承自
專案使用者
projects_users: ProjectUser[];
角色
roles: {
id: string;
name: string;
}[];
是否為職員?
staff?: boolean;
繼承自
頭銜
titles: {
id: string;
name: string;
}[];
頭銜使用者
titles_users: TitlesUser[];
更新時間
updated_at: null | string;
繼承自
網址
url: string;
繼承自
使用者
user: any;
常用名字
usual_first_name: null | string;
繼承自
常用全名
usual_full_name: null | string;
繼承自
錢包
wallet: number;
繼承自
圖片
屬性
連結
link: string;
版本
versions: {
large: string;
medium: string;
micro: string;
small: string;
};
大
large: string;
中
medium: string;
微
micro: string;
小
small: string;
使用者語言
屬性
建立時間
created_at: string;
ID
id: number;
語言 ID
language_id: number;
位置
position: number;
使用者 ID
user_id: number;
專案使用者
屬性
建立時間
created_at: string;
目前團隊 ID
current_team_id: number;
課程 ID
cursus_ids: number[];
最終分數
final_mark: null | number;
ID
id: number;
已評分
marked: boolean;
評分時間
marked_at: null | string;
發生次數
occurrence: number;
專案
project: {
id: number;
name: string;
parent_id: null | number;
slug: string;
};
ID
id: number;
名稱
name: string;
父 ID
parent_id: null | number;
Slug
slug: string;
可重試時間
retriable_at: null | string;
狀態
status: "in_progress" | "finished";
更新時間
updated_at: null | string;
已驗證?
validated?: null | boolean;
使用者稱號
屬性
建立時間
created_at: string;
ID
id: number;
已選擇
selected: boolean;
稱號 ID
title_id: number;
更新時間
updated_at: null | string;
使用者 ID
user_id: number;
使用者資料
擴充自
屬性
校友
alumni: boolean;
匿名化日期
anonymize_date: string;
評分點數
correction_point: number;
建立時間
created_at: string;
顯示名稱
displayname: string;
電子郵件
email: string;
名字
first_name: string;
ID
id: number;
圖片網址
image_url: null | string;
已啟動?
is_launched?: boolean;
姓氏
last_name: string;
地點
location: null | string;
登入名稱
login: string;
電話
phone: null | string;
入學月份
pool_month: null | string;
入學年份
pool_year: null | string;
員工?
staff?: boolean;
更新時間
updated_at: null | string;
網址
url: string;
常用名字
usual_first_name: null | string;
常用全名
usual_full_name: null | string;
錢包
wallet: number;
預設值()
default<P>(options): OAuthConfig<P>
將 42School 登入新增至您的頁面。
設定
回呼網址
https://example.com/api/auth/callback/42-school
組態設定
import { Auth } from "@auth/core"
import FortyTwoSchool from "@auth/core/providers/42-school"
const request = new Request(origin)
const response = await Auth(request, {
providers: [
FortyTwoSchool({
clientId: FORTY_TWO_SCHOOL_CLIENT_ID,
clientSecret: FORTY_TWO_SCHOOL_CLIENT_SECRET,
}),
],
})
資源
注意事項
預設情況下,Auth.js 假設 42School 提供者是基於OAuth 2 規範。
💡
42School 提供者具有預設組態。若要覆寫您的使用案例的預設值,請查看自訂內建的 OAuth 提供者。
類型參數
類型參數 |
---|
P 擴充自 FortyTwoProfile |
參數
參數 | 類型 |
---|---|
選項 | OAuthUserConfig <P > |
回傳值
OAuthConfig
<P
>