# CodeSOD: Very Valid Tokens

DevFeed: [CodeSOD: Very Valid Tokens](<https://devfeed.tech/articles/codesod-very-valid-tokens-63106.md>)

Original publisher: [Read original article](<https://thedailywtf.com/articles/very-valid-tokens>)

Author: Remy Porter

Published: 2026-10-01T06:30:00Z

Content type: article

Language: en

Sources: [The Daily WTF](<https://devfeed.tech/sources/the-daily-wtf.md>)

Topics: [Secure token management](<https://devfeed.tech/topics/secure-token-management.md>), [Secrets Management](<https://devfeed.tech/topics/secrets-management.md>)

Tags: [authentication](<https://devfeed.tech/tags/authentication.md>), [codesod](<https://devfeed.tech/tags/codesod.md>)

## AI overview

A production authentication-token validation function unconditionally returns true, allowing any token through. The article notes that user identity is tracked separately at session start, which only marginally limits impersonation.

## Source excerpt

Today's anonymous submitter shares with us the function their company uses to validate authentication tokens. public bool IsTokenValid(string token) { //TODO return true; } This is running in production. So that's fun. The user they've authenticated as is tracked separately at the start of their session, which makes it at least marginally harder to pretend to be someone you aren't, but for authentication, any token will do. [Advertisement] Picking up NuGet is easy. Getting good at it takes time. Download our guide to learn the best practice of NuGet for the Enterprise.