feat(auth): 在JWT令牌中添加设备ID信息
Some checks failed
Build docker and publish / build (20.15.1) (push) Has been cancelled
Some checks failed
Build docker and publish / build (20.15.1) (push) Has been cancelled
This commit is contained in:
parent
b6e93d0496
commit
5de2f37c20
@ -131,6 +131,7 @@ func (l *DeviceLoginLogic) DeviceLogin(req *types.DeviceLoginRequest) (resp *typ
|
|||||||
jwt.WithOption("UserId", userInfo.Id),
|
jwt.WithOption("UserId", userInfo.Id),
|
||||||
jwt.WithOption("SessionId", sessionId),
|
jwt.WithOption("SessionId", sessionId),
|
||||||
jwt.WithOption("LoginType", "device"),
|
jwt.WithOption("LoginType", "device"),
|
||||||
|
jwt.WithOption("DeviceId", deviceInfo.Id),
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
l.Errorw("token generate error",
|
l.Errorw("token generate error",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user