// Create a JWT token for jwt-bearer grant
Create a JWT token for jwt-bearer grant
// Create a JWT token for jwt - bearer grant
func createAuthJwt() (string, error) {
	currentTime := time.Now().Unix()
	payload := map[string]interface{}{
		"aud": auth_endpoint_url,
		"iss": auth_client_id,
		"sub": auth_client_id,
		"jti": uuid.New().String(),
		"iat": currentTime,
		"nbf": currentTime,
		"exp": currentTime + 60,
	}
	return signAuthJwt(payload)
}
func createAuthJwt ( ) ( string , error ) { currentTime := time . Now ( ) . Unix ( ) payload := map [ string ] interface { } { " " : auth_endpoint_url , " " : auth_client_id , " " : auth_client_id , " " : uuid . New ( ) . String ( ) , " " : currentTime , " " : currentTime , " " : currentTime + 60 , } return signAuthJwt ( payload ) }
Create a JWT token for jwt-bearer grant
Create a JWT token for jwt - bearer grant