Skip to content

Commit

Permalink
Merge pull request #9 from yaronius/master
Browse files Browse the repository at this point in the history
Make personal number optional in auth payload
  • Loading branch information
NicklasWallgren authored Nov 15, 2021
2 parents 05c58ab + e53c896 commit 5099535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type AuthenticationPayload struct {
// The personal number of the user. String 12 digits. Century must be included.
// If the personal number is excluded, the client must be started with
// the autoStartToken returned in the response.
PersonalNumber string `validate:"numeric" json:"personalNumber"`
PersonalNumber string `validate:"omitempty,numeric" json:"personalNumber,omitempty"`
// The user IP address as seen by RP. String, IPv4 and IPv6 is allowed.
EndUserIP string `validate:"ip" json:"endUserIp"`
// Requirements on how the auth or sign order must be performed.
Expand Down

0 comments on commit 5099535

Please sign in to comment.