fix: userId typing

This commit is contained in:
VQIVS committed 2025-09-16 11:34:45 +03:30
1 parent e3d37a8e4d
commit 7a365f57ec
2 files changed
+3 -4

No files matched your search

+2 -3
View File
@@ -131,9 +131,8 @@ func (s *authService) Authenticate(ctx context.Context, pubKey string, signature
return nil, fmt.Errorf("failed to create session: %w", err)
}
//FIXME: KYC level will be set to 1
claims := &jwt.UserClaims{
UserID: uint(user.ID.ID()),
UserID: user.ID.String(),
KYCLevel: int(user.KYCLevel),
Sections: []string{},
}
@@ -147,7 +146,7 @@ func (s *authService) Authenticate(ctx context.Context, pubKey string, signature
refreshExpiresAt := time.Now().Add(time.Duration(s.cfg.JWT.RefreshTokenExpMinutes) * time.Minute)
refreshClaims := &jwt.UserClaims{
UserID: uint(user.ID.ID()),
UserID: user.ID.String(),
KYCLevel: int(user.KYCLevel),
Sections: []string{"refresh"},
}