aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/api/handlers.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-28 13:41:11 +0900
committernsfisis <nsfisis@gmail.com>2024-07-28 13:42:58 +0900
commitac732635747828dbe20c657362eba10840a039d2 (patch)
tree05f880379b2aa4c07dde5fc666eec8af7c3ab327 /backend/api/handlers.go
parent456be68ca2344e1feb11a119053ab862848971af (diff)
downloadphperkaigi-2025-albatross-ac732635747828dbe20c657362eba10840a039d2.tar.gz
phperkaigi-2025-albatross-ac732635747828dbe20c657362eba10840a039d2.tar.zst
phperkaigi-2025-albatross-ac732635747828dbe20c657362eba10840a039d2.zip
refactor: change JwtPayload type
Diffstat (limited to 'backend/api/handlers.go')
-rw-r--r--backend/api/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/api/handlers.go b/backend/api/handlers.go
index c435d72..57aaabb 100644
--- a/backend/api/handlers.go
+++ b/backend/api/handlers.go
@@ -53,7 +53,7 @@ func (h *ApiHandler) PostApiLogin(ctx context.Context, request PostApiLoginReque
func _assertJwtPayloadIsCompatibleWithJWTClaims() {
var c auth.JWTClaims
var p JwtPayload
- p.UserId = float32(c.UserID)
+ p.UserId = c.UserID
p.Username = c.Username
p.DisplayName = c.DisplayName
p.IconPath = c.IconPath