Skip to content

Commit b0e71f1

Browse files
Merge pull request #216 from supertokens/dashboard-issue
fix: panic in dashboard usersGet API
2 parents 5ed99e0 + 6f4d1cf commit b0e71f1

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [unreleased]
99

10+
## [0.9.11]
11+
- Fixes panic issue with dashboard usersGet API
12+
1013
## [0.9.10]
1114
- Fixes issue where if SendEmail is overridden with a different email, it will reset that email.
1215

recipe/dashboard/api/usersGet.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
type UsersGetResponse struct {
1313
Status string `json:"status"`
14-
NextPaginationToken string `json:"nextPaginationToken,omitempty"`
14+
NextPaginationToken *string `json:"nextPaginationToken,omitempty"`
1515
Users []Users `json:"users"`
1616
}
1717

@@ -77,7 +77,7 @@ func UsersGet(apiImplementation dashboardmodels.APIInterface, options dashboardm
7777
if err != nil {
7878
return UsersGetResponse{
7979
Status: "OK",
80-
NextPaginationToken: *usersResponse.NextPaginationToken,
80+
NextPaginationToken: usersResponse.NextPaginationToken,
8181
Users: getUsersTypeFromPaginationResult(usersResponse),
8282
}, nil
8383
}
@@ -120,7 +120,7 @@ func UsersGet(apiImplementation dashboardmodels.APIInterface, options dashboardm
120120

121121
return UsersGetResponse{
122122
Status: "OK",
123-
NextPaginationToken: *usersResponse.NextPaginationToken,
123+
NextPaginationToken: usersResponse.NextPaginationToken,
124124
Users: getUsersTypeFromPaginationResult(usersResponse),
125125
}, nil
126126
}

supertokens/constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const (
2121
)
2222

2323
// VERSION current version of the lib
24-
const VERSION = "0.9.10"
24+
const VERSION = "0.9.11"
2525

2626
var (
2727
cdiSupported = []string{"2.8", "2.9", "2.10", "2.11", "2.12", "2.13", "2.14", "2.15"}

0 commit comments

Comments
 (0)