Skip to content

Commit

Permalink
add huggingface oauth provider (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepitre authored Sep 3, 2024
1 parent d4b4f31 commit 9168a22
Showing 1 changed file with 8 additions and 1 deletion.
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

0 comments on commit 9168a22

Please sign in to comment.