Skip to content

Commit 435e9d9

Browse files
authored
Merge pull request #45 from Microkubes/customer-id-to-float
Changes customerID type: string->float64
2 parents f8ac680 + 40551e7 commit 435e9d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

auth/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type Auth struct {
1010
UserID string `json:"userId,omitempty"`
1111

1212
// CustomerID is the ID of the customer to which the authenticated user belongs.
13-
CustomerID string `json:"customerID,omitempty"`
13+
CustomerID float64 `json:"customerID,omitempty"`
1414

1515
// Username is the username of the authenticated user.
1616
Username string `json:"username,omitempty"`

jwt/jwt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func NewJWTSecurityMiddleware(resolver goajwt.KeyResolver, scheme *goa.JWTSecuri
5151
}
5252

5353
if _, ok := claims["customerID"]; ok {
54-
authObj.CustomerID = claims["customerID"].(string)
54+
authObj.CustomerID = claims["customerID"].(float64)
5555
}
5656

5757
if _, ok := claims["username"]; ok {

0 commit comments

Comments
 (0)