diff --git a/v2/thirdparty/custom-ui/thirdparty-login.mdx b/v2/thirdparty/custom-ui/thirdparty-login.mdx index c811f8f4d..f3d661cfa 100644 --- a/v2/thirdparty/custom-ui/thirdparty-login.mdx +++ b/v2/thirdparty/custom-ui/thirdparty-login.mdx @@ -968,9 +968,39 @@ let providers: ^{nodeProviderInput}[] = [ -:::note -Coming Soon -::: +```go +import ( + "github.com/supertokens/supertokens-golang/recipe/thirdparty/tpmodels" +) + +func main() { + _ = []tpmodels.ProviderInput{{ + Config: tpmodels.ProviderConfig{ + ThirdPartyId: "apple", + Clients: []tpmodels.ProviderClientConfig{ + { + ClientType: "web-and-android", + ClientID: "...", + AdditionalConfig: map[string]interface{}{ + "keyId": "...", + "privateKey": "...", + "teamId": "...", + }, + }, + { + ClientType: "ios", + ClientID: "...", + AdditionalConfig: map[string]interface{}{ + "keyId": "...", + "privateKey": "...", + "teamId": "...", + }, + }, + }, + }, + }} +} +``` diff --git a/v2/thirdpartyemailpassword/custom-ui/thirdparty-login.mdx b/v2/thirdpartyemailpassword/custom-ui/thirdparty-login.mdx index 78aa07d32..9b7fe6c43 100644 --- a/v2/thirdpartyemailpassword/custom-ui/thirdparty-login.mdx +++ b/v2/thirdpartyemailpassword/custom-ui/thirdparty-login.mdx @@ -971,9 +971,39 @@ let providers: ^{nodeProviderInput}[] = [ -:::note -Coming Soon -::: +```go +import ( + "github.com/supertokens/supertokens-golang/recipe/thirdparty/tpmodels" +) + +func main() { + _ = []tpmodels.ProviderInput{{ + Config: tpmodels.ProviderConfig{ + ThirdPartyId: "apple", + Clients: []tpmodels.ProviderClientConfig{ + { + ClientType: "web-and-android", + ClientID: "...", + AdditionalConfig: map[string]interface{}{ + "keyId": "...", + "privateKey": "...", + "teamId": "...", + }, + }, + { + ClientType: "ios", + ClientID: "...", + AdditionalConfig: map[string]interface{}{ + "keyId": "...", + "privateKey": "...", + "teamId": "...", + }, + }, + }, + }, + }} +} +``` diff --git a/v2/thirdpartypasswordless/custom-ui/thirdparty-login.mdx b/v2/thirdpartypasswordless/custom-ui/thirdparty-login.mdx index 062324fd0..c910d6eb6 100644 --- a/v2/thirdpartypasswordless/custom-ui/thirdparty-login.mdx +++ b/v2/thirdpartypasswordless/custom-ui/thirdparty-login.mdx @@ -971,9 +971,39 @@ let providers: ^{nodeProviderInput}[] = [ -:::note -Coming Soon -::: +```go +import ( + "github.com/supertokens/supertokens-golang/recipe/thirdparty/tpmodels" +) + +func main() { + _ = []tpmodels.ProviderInput{{ + Config: tpmodels.ProviderConfig{ + ThirdPartyId: "apple", + Clients: []tpmodels.ProviderClientConfig{ + { + ClientType: "web-and-android", + ClientID: "...", + AdditionalConfig: map[string]interface{}{ + "keyId": "...", + "privateKey": "...", + "teamId": "...", + }, + }, + { + ClientType: "ios", + ClientID: "...", + AdditionalConfig: map[string]interface{}{ + "keyId": "...", + "privateKey": "...", + "teamId": "...", + }, + }, + }, + }, + }} +} +```