Fix comments
This commit is contained in:
		@@ -1096,10 +1096,9 @@ func (s *Server) verify(token string) ([]byte, error) {
 | 
				
			|||||||
		return nil, fmt.Errorf("unable to parse signed message")
 | 
							return nil, fmt.Errorf("unable to parse signed message")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Parse the message to check expiry, as it jose doesn't distinguish expiry error from others
 | 
					 | 
				
			||||||
	parts := strings.Split(token, ".")
 | 
						parts := strings.Split(token, ".")
 | 
				
			||||||
	if len(parts) != 3 {
 | 
						if len(parts) != 3 {
 | 
				
			||||||
		return nil, fmt.Errorf("square/go-jose: compact JWS format must have three parts")
 | 
							return nil, fmt.Errorf("compact JWS format must have three parts")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	payload, err := base64.RawURLEncoding.DecodeString(parts[1])
 | 
						payload, err := base64.RawURLEncoding.DecodeString(parts[1])
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user