Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewValidationError (0.08 sec)

  1. internal/jwt/parser.go

    func (c *StandardClaims) Valid() error {
    	if err := c.StandardClaims.Valid(); err != nil {
    		return err
    	}
    
    	if c.AccessKey == "" && c.Subject == "" {
    		return jwtgo.NewValidationError("accessKey/sub missing",
    			jwtgo.ValidationErrorClaimsInvalid)
    	}
    
    	return nil
    }
    
    // NewMapClaims - Initializes a new map claims
    func NewMapClaims() *MapClaims {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 17 16:45:46 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top