-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moves account linking into supertokens package
- Loading branch information
1 parent
e9db988
commit 5403429
Showing
14 changed files
with
375 additions
and
225 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,7 +97,7 @@ func TestGetUsersOldestFirst(t *testing.T) { | |
|
||
assert.Equal(t, len(users.Users), 1) | ||
assert.NotNil(t, users.NextPaginationToken) | ||
assert.Equal(t, "[email protected]", users.Users[0].User["email"]) | ||
assert.Equal(t, "[email protected]", users.Users[0].Emails[0]) | ||
|
||
users, err = supertokens.GetUsersOldestFirst("public", users.NextPaginationToken, &limit, nil, nil) | ||
if err != nil { | ||
|
@@ -106,7 +106,7 @@ func TestGetUsersOldestFirst(t *testing.T) { | |
|
||
assert.Equal(t, len(users.Users), 1) | ||
assert.NotNil(t, users.NextPaginationToken) | ||
assert.Equal(t, "[email protected]", users.Users[0].User["email"]) | ||
assert.Equal(t, "[email protected]", users.Users[0].Emails[0]) | ||
|
||
limit = 5 | ||
users, err = supertokens.GetUsersOldestFirst("public", users.NextPaginationToken, &limit, nil, nil) | ||
|
@@ -203,7 +203,7 @@ func TestGetUsersNewestFirst(t *testing.T) { | |
|
||
assert.Equal(t, len(users.Users), 1) | ||
assert.NotNil(t, users.NextPaginationToken) | ||
assert.Equal(t, "[email protected]", users.Users[0].User["email"]) | ||
assert.Equal(t, "[email protected]", users.Users[0].Emails[0]) | ||
|
||
users, err = supertokens.GetUsersNewestFirst("public", users.NextPaginationToken, &limit, nil, nil) | ||
if err != nil { | ||
|
@@ -212,7 +212,7 @@ func TestGetUsersNewestFirst(t *testing.T) { | |
|
||
assert.Equal(t, len(users.Users), 1) | ||
assert.NotNil(t, users.NextPaginationToken) | ||
assert.Equal(t, "[email protected]", users.Users[0].User["email"]) | ||
assert.Equal(t, "[email protected]", users.Users[0].Emails[0]) | ||
|
||
limit = 5 | ||
users, err = supertokens.GetUsersNewestFirst("public", users.NextPaginationToken, &limit, nil, nil) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,15 +89,15 @@ func TestGetUsersOldesFirst(t *testing.T) { | |
t.Error(err.Error()) | ||
} | ||
assert.Equal(t, 1, len(userPaginationResult.Users)) | ||
assert.Equal(t, "[email protected]", userPaginationResult.Users[0].User["email"]) | ||
assert.Equal(t, "[email protected]", userPaginationResult.Users[0].Emails[0]) | ||
assert.Equal(t, "*string", reflect.TypeOf(userPaginationResult.NextPaginationToken).String()) | ||
|
||
userPaginationResult, err = supertokens.GetUsersOldestFirst("public", userPaginationResult.NextPaginationToken, &customLimit, nil, nil) | ||
if err != nil { | ||
t.Error(err.Error()) | ||
} | ||
assert.Equal(t, 1, len(userPaginationResult.Users)) | ||
assert.Equal(t, "[email protected]", userPaginationResult.Users[0].User["email"]) | ||
assert.Equal(t, "[email protected]", userPaginationResult.Users[0].Emails[0]) | ||
assert.Equal(t, "*string", reflect.TypeOf(userPaginationResult.NextPaginationToken).String()) | ||
|
||
customLimit = 5 | ||
|
@@ -215,15 +215,15 @@ func TestGetUsersNewestFirst(t *testing.T) { | |
t.Error(err.Error()) | ||
} | ||
assert.Equal(t, 1, len(userPaginationResult.Users)) | ||
assert.Equal(t, "[email protected]", userPaginationResult.Users[0].User["email"]) | ||
assert.Equal(t, "[email protected]", userPaginationResult.Users[0].Emails[0]) | ||
assert.Equal(t, "*string", reflect.TypeOf(userPaginationResult.NextPaginationToken).String()) | ||
|
||
userPaginationResult, err = supertokens.GetUsersNewestFirst("public", userPaginationResult.NextPaginationToken, &customLimit, nil, nil) | ||
if err != nil { | ||
t.Error(err.Error()) | ||
} | ||
assert.Equal(t, 1, len(userPaginationResult.Users)) | ||
assert.Equal(t, "[email protected]", userPaginationResult.Users[0].User["email"]) | ||
assert.Equal(t, "[email protected]", userPaginationResult.Users[0].Emails[0]) | ||
assert.Equal(t, "*string", reflect.TypeOf(userPaginationResult.NextPaginationToken).String()) | ||
|
||
customLimit = 5 | ||
|
Oops, something went wrong.