Versions in this module Expand all Collapse all v1 v1.0.1 Jul 9, 2026 Changes in this version + const DefaultBaseURL + var ErrCertificateInvalid = errors.New("PSEB reports certificate is not valid") + var ErrNoCNIC = errors.New("no CNIC found in PDF") + var ErrNoJWT = errors.New("no JWT found in QR code") + var ErrNoQRCode = errors.New("no QR code found in PDF") + func ExtractCNIC(pdf []byte) (string, error) + type Certificate struct + IssuedAt time.Time + JWT string + JWTExpiresAt time.Time + PSEBHostedVerificationURL string + RegistrationNumber string + Type CertificateType + func ExtractCertificate(pdf []byte) (*Certificate, error) + type CertificateType string + const CertificateTypeCompany + const CertificateTypeFreelancer + type Client struct + func New(opts ...httpr.ClientOption) *Client + func (c *Client) Verify(ctx context.Context, token string) (*VerificationResult, error) + type VerificationResult struct + IsValid bool + IssuedAt time.Time + JWTExpiresAt time.Time + Name string + RegistrationExpiresAt time.Time + RegistrationNumber string + Type CertificateType + ValidFrom string + ValidTill string v1.0.0 Jul 9, 2026