Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add huggingface oauth provider #125

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Sources/API/Models/OAuthProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public enum OAuthProvider: CaseIterable, Codable, Sendable, Equatable, Identifia
case box
case slack
case linear
case huggingface

// **
// WHEN ADDING A NEW CASE, MAKE SURE TO ADD IT TO THE ALL CASES ARRAY
Expand Down Expand Up @@ -68,7 +69,8 @@ public enum OAuthProvider: CaseIterable, Codable, Sendable, Equatable, Identifia
.xero,
.box,
.slack,
.linear
.linear,
.huggingface
]
}

Expand Down Expand Up @@ -291,6 +293,11 @@ public enum OAuthProvider: CaseIterable, Codable, Sendable, Equatable, Identifia
strategy: "oauth_linear",
name: "Linear"
)
case .huggingface:
return .init(
strategy: "oauth_huggingface",
name: "Hugging Face"
)
}
}

Expand Down
Loading