diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-07-28 13:41:11 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-07-28 13:42:58 +0900 |
| commit | ac732635747828dbe20c657362eba10840a039d2 (patch) | |
| tree | 05f880379b2aa4c07dde5fc666eec8af7c3ab327 /backend/api/handlers.go | |
| parent | 456be68ca2344e1feb11a119053ab862848971af (diff) | |
| download | phperkaigi-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.go | 2 |
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 |
