token

A simple utility val that reads and displays the Val Town API token from the environment.

Description

This val accesses the valtown environment variable, which contains your Val Town API token. This is useful for:

  • Testing environment variable access
  • Verifying your token is correctly configured
  • Quick debugging of authentication issues

Usage

This is a script-type val that logs the token value when executed:

console.log(Deno.env.get("valtown"));

Environment Variables

  • valtown - Your Val Town API token (automatically provided by the platform)

Notes

⚠️ Security Warning: Be careful when logging or exposing API tokens. This val is intended for debugging purposes only. In production code, never log sensitive credentials or expose them in HTTP responses.