Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for mapClaimsToken (0.14 sec)

  1. internal/jwt/parser_test.go

    		"",
    		defaultKeyFunc,
    		&StandardClaims{
    			StandardClaims: jwt.StandardClaims{
    				ExpiresAt: time.Now().Add(time.Second * 10).Unix(),
    			},
    		},
    		true,
    		0,
    	},
    }
    
    func mapClaimsToken(claims *MapClaims) string {
    	claims.SetAccessKey("test")
    	j := jwt.NewWithClaims(jwt.SigningMethodHS512, claims)
    	tk, _ := j.SignedString([]byte("HelloSecret"))
    	return tk
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Nov 05 19:20:08 UTC 2021
    - 6K bytes
    - Viewed (0)
Back to top