Commit be76c86f authored by Mo Firouz's avatar Mo Firouz
Browse files

Fix typo convering claimset to json.

parent 311e0a83
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -85,13 +85,13 @@ function M.google_obtain_access_token(client_email, private_key)

  local algo_type = "RS256"

  local jwt_claimset = nk.base64url_encode({
  local jwt_claimset = nk.base64url_encode(nk.json_encode({
    ["iss"] = client_email,
    ["scope"] = scope,
    ["aud"] = auth_url,
    ["exp"] = exp,
    ["iat"] = iat
  })
  }))

  local jwt_token = nk.jwt_generate(algo_type, private_key, jwt_claimset)