---
cases:
  - note: jwtencodesign/plain integer timestamps
    query: data.test.p = x
    modules:
      - |
        package test

        p := x if {
        	now_ns := 1.678e15
        	iat := now_ns / 1e6
        	exp := iat + 300
        	io.jwt.encode_sign({"alg": "HS256", "typ": "JWT"}, {"iat": iat, "exp": exp}, {"k": "AyM1SysPpbyDfgZld3umj1qzKObwVMkoqQ-EstJQLr_T-1qS0gZH75aKtMN3Yj0iPS4hcgUuTwjAzZr1Z9CAow", "kty": "oct"}, x)
        }
    data: {}
    want_result:
      - x: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NzgwMDAzMDAsImlhdCI6MTY3ODAwMDAwMH0.ZNCOrxE5MNdrqzHmiQ7c3so0IvGqHddBZFWe3kBaQHg
