Skip to main content

Framework examples

Code examples for reading the gateway Principal object in Hono, Next.js, Express, and Go. Parse the forwarded identity in your framework.
1 min read

These examples show how to parse the Principal from the X-Unkey-Principal header in common frameworks using API key authentication.