Skip to content

Commit

Permalink
adds missing code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Oct 21, 2023
1 parent 11eabb7 commit 2de5439
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 9 deletions.
36 changes: 33 additions & 3 deletions v2/thirdparty/custom-ui/thirdparty-login.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -968,9 +968,39 @@ let providers: ^{nodeProviderInput}[] = [
</TabItem>
<TabItem value="go">

:::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": "...",
},
},
},
},
}}
}
```

</TabItem>
<TabItem value="python">
Expand Down
36 changes: 33 additions & 3 deletions v2/thirdpartyemailpassword/custom-ui/thirdparty-login.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -971,9 +971,39 @@ let providers: ^{nodeProviderInput}[] = [
</TabItem>
<TabItem value="go">

:::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": "...",
},
},
},
},
}}
}
```

</TabItem>
<TabItem value="python">
Expand Down
36 changes: 33 additions & 3 deletions v2/thirdpartypasswordless/custom-ui/thirdparty-login.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -971,9 +971,39 @@ let providers: ^{nodeProviderInput}[] = [
</TabItem>
<TabItem value="go">

:::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": "...",
},
},
},
},
}}
}
```

</TabItem>
<TabItem value="python">
Expand Down

0 comments on commit 2de5439

Please sign in to comment.