Inspect a typical JWT
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyXzEyMyIsInJvbGUiOiJzdHVkZW50IiwiZXhwIjoxNzEwMDAwMDAwfQ.Q3hH8yzqI2OsHJ1Lyj8jJfJPa5ZpIVlh1FhJpJbqMcs
{ "alg": "HS256", "typ": "JWT"}{ "sub": "user_123", "role": "student", "exp": 1710000000}The header says HS256 (a shared-secret algorithm). The payload identifies the user, their role, and when the token expires. The signature is the third part. (This is a sample token for demonstration — the signature won't verify against any real secret.)