---
title: Authenticate JSON Web Tokens at the edge
summary: Decode the popular JWT format to verify user session tokens before forwarding trusted authentication data to your origin.
url: https://www.fastly.com/documentation/solutions/examples/json-web-tokens
---

Decode the popular JWT format to verify user session tokens before forwarding trusted authentication data to your origin.

## VCL

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/c2bcd4b9)

## Compute

### Rust

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/b2766c67)

### Javascript

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/25e41c0a)

### Go

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/1950e580)

