Skip to content

Commit 10974a9

Browse files
committed
fixes nextjs docs
1 parent 3aa9f54 commit 10974a9

File tree

2 files changed

+66
-2
lines changed

2 files changed

+66
-2
lines changed

v2/thirdpartypasswordless/nextjs/app-directory/init.mdx

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,39 @@ export const backendConfig = (): TypeInput => {
211211
recipeList: [
212212
ThirdPartyPasswordlessNode.init({
213213
flowType: "^{form_flowType}",
214-
contactMethod: "^{form_contactMethod}"
214+
contactMethod: "^{form_contactMethod}",
215+
// We have provided you with development keys which you can use for testing.
216+
// IMPORTANT: Please replace them with your own OAuth keys for production use.
217+
providers: [{
218+
config: {
219+
thirdPartyId: "google",
220+
clients: [{
221+
clientId: "1060725074195-kmeum4crr01uirfl2op9kd5acmi9jutn.apps.googleusercontent.com",
222+
clientSecret: "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"
223+
}]
224+
}
225+
}, {
226+
config: {
227+
thirdPartyId: "github",
228+
clients: [{
229+
clientId: "467101b197249757c71f",
230+
clientSecret: "e97051221f4b6426e8fe8d51486396703012f5bd"
231+
}]
232+
}
233+
}, {
234+
config: {
235+
thirdPartyId: "apple",
236+
clients: [{
237+
clientId: "4398792-io.supertokens.example.service",
238+
additionalConfig: {
239+
keyId: "7M48Y4RYDL",
240+
privateKey:
241+
"-----BEGIN PRIVATE KEY-----\nMIGTAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBHkwdwIBAQQgu8gXs+XYkqXD6Ala9Sf/iJXzhbwcoG5dMh1OonpdJUmgCgYIKoZIzj0DAQehRANCAASfrvlFbFCYqn3I2zeknYXLwtH30JuOKestDbSfZYxZNMqhF/OzdZFTV0zc5u5s3eN+oCWbnvl0hM+9IW0UlkdA\n-----END PRIVATE KEY-----",
242+
teamId: "YWQCXGJRJL",
243+
}
244+
}]
245+
}
246+
}],
215247
}),
216248
SessionNode.init(),
217249
],

v2/thirdpartypasswordless/nextjs/init.mdx

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,39 @@ export const backendConfig = (): TypeInput => {
198198
recipeList: [
199199
ThirdPartyPasswordlessNode.init({
200200
flowType: "^{form_flowType}",
201-
contactMethod: "^{form_contactMethod}"
201+
contactMethod: "^{form_contactMethod}",
202+
// We have provided you with development keys which you can use for testing.
203+
// IMPORTANT: Please replace them with your own OAuth keys for production use.
204+
providers: [{
205+
config: {
206+
thirdPartyId: "google",
207+
clients: [{
208+
clientId: "1060725074195-kmeum4crr01uirfl2op9kd5acmi9jutn.apps.googleusercontent.com",
209+
clientSecret: "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"
210+
}]
211+
}
212+
}, {
213+
config: {
214+
thirdPartyId: "github",
215+
clients: [{
216+
clientId: "467101b197249757c71f",
217+
clientSecret: "e97051221f4b6426e8fe8d51486396703012f5bd"
218+
}]
219+
}
220+
}, {
221+
config: {
222+
thirdPartyId: "apple",
223+
clients: [{
224+
clientId: "4398792-io.supertokens.example.service",
225+
additionalConfig: {
226+
keyId: "7M48Y4RYDL",
227+
privateKey:
228+
"-----BEGIN PRIVATE KEY-----\nMIGTAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBHkwdwIBAQQgu8gXs+XYkqXD6Ala9Sf/iJXzhbwcoG5dMh1OonpdJUmgCgYIKoZIzj0DAQehRANCAASfrvlFbFCYqn3I2zeknYXLwtH30JuOKestDbSfZYxZNMqhF/OzdZFTV0zc5u5s3eN+oCWbnvl0hM+9IW0UlkdA\n-----END PRIVATE KEY-----",
229+
teamId: "YWQCXGJRJL",
230+
}
231+
}]
232+
}
233+
}],
202234
}),
203235
SessionNode.init(),
204236
],

0 commit comments

Comments
 (0)