• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
twitchard

twitchard

hume-auth

Public
Like
hume-auth
Home
Code
2
README.md
H
hume-auth.ts
Branches
1
Pull requests
Remixes
History
Environment variables
2
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
5/15/2025
README.md

Hume Authentication Val

This Val authenticates with the Hume API and returns an access token using the token authentication strategy.

Setup

Before using this Val, you need to set up the following environment variables:

  1. HUME_API_KEY - Your Hume API key
  2. HUME_SECRET_KEY - Your Hume Secret key

You can find these keys in the Hume Portal.

Usage

This Val is set up as an HTTP endpoint. When called, it will:

  1. Authenticate with Hume using your API key and Secret key
  2. Return the access token and related information

Example Response

{ "access_token": "your_access_token", "token_type": "bearer", "expires_in": 1800 }

Error Handling

If there's an issue with authentication, the Val will return an appropriate error message with details about what went wrong.

Security Notes

  • The access token expires after 30 minutes, so you'll need to request a new one periodically
  • This Val is designed for server-side use to obtain tokens for client-side applications
  • Never expose your API key or Secret key in client-side code
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.