Skip to content

Commit

Permalink
feat: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
georgehao committed Apr 11, 2024
1 parent b52d43c commit 3550335
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion coordinator/internal/controller/api/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,14 @@ func (a *AuthController) PayloadFunc(data interface{}) jwt.MapClaims {
Challenge: v.Message.Challenge,
ProverName: v.Message.ProverName,
ProverVersion: v.Message.ProverVersion,
HardForkName: v.Message.HardForkName,
},
Signature: v.Signature,
}

if v.Message.HardForkName != "" {
authMsg.Identity.HardForkName = v.Message.HardForkName
}

publicKey, err := authMsg.PublicKey()
if err != nil {
return jwt.MapClaims{}
Expand Down

0 comments on commit 3550335

Please sign in to comment.