feat(auth): 在JWT令牌中添加设备ID信息
Some checks failed
Build docker and publish / build (20.15.1) (push) Has been cancelled

This commit is contained in:
shanshanzhong 2025-11-30 20:32:34 -08:00
parent b6e93d0496
commit 5de2f37c20

View File

@ -131,6 +131,7 @@ func (l *DeviceLoginLogic) DeviceLogin(req *types.DeviceLoginRequest) (resp *typ
jwt.WithOption("UserId", userInfo.Id),
jwt.WithOption("SessionId", sessionId),
jwt.WithOption("LoginType", "device"),
jwt.WithOption("DeviceId", deviceInfo.Id),
)
if err != nil {
l.Errorw("token generate error",