Skip to content

Commit 634da75

Browse files
committed
fixes tests
1 parent bc39601 commit 634da75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

recipe/thirdparty/signinupFeature_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ func TestHandlePostSignUpInGetsSetCorrectly(t *testing.T) {
11791179
gock.New("https://test.com/").
11801180
Post("oauth/token").
11811181
Reply(200).
1182-
JSON(map[string]string{"access_token": "abcdefghj", "email": "[email protected]"})
1182+
JSON(map[string]string{"access_token": "abcdefghj", "email": "[email protected]", "id": "abcdefghj"})
11831183

11841184
postData := map[string]interface{}{
11851185
"thirdPartyId": "custom",

recipe/thirdparty/testingUtils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ var customProvider2 = tpmodels.ProviderInput{
173173
Override: func(originalImplementation *tpmodels.TypeProvider) *tpmodels.TypeProvider {
174174
originalImplementation.GetUserInfo = func(oAuthTokens tpmodels.TypeOAuthTokens, userContext supertokens.UserContext) (tpmodels.TypeUserInfo, error) {
175175
return tpmodels.TypeUserInfo{
176-
ThirdPartyUserId: oAuthTokens["access_token"].(string),
176+
ThirdPartyUserId: oAuthTokens["id"].(string),
177177
Email: &tpmodels.EmailStruct{
178178
ID: oAuthTokens["email"].(string),
179179
IsVerified: true,

0 commit comments

Comments
 (0)