Skip to content

Commit

Permalink
feat: always allow pairing when using chained sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
sietseringers committed Mar 25, 2021
1 parent aa95efc commit 8d26cf5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/irmaserver/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ func (s *Server) StartSession(req interface{}, handler server.SessionHandler,
}

pairingRecommended := false
if action == irma.ActionDisclosing {
if rrequest.Base().NextSession != nil && rrequest.Base().NextSession.URL != "" {
pairingRecommended = true
} else if action == irma.ActionDisclosing {
err := request.Disclosure().Disclose.Iterate(func(attr *irma.AttributeRequest) error {
if attr.Value != nil {
pairingRecommended = true
Expand Down

0 comments on commit 8d26cf5

Please sign in to comment.