AntiPattern

JWT Multi-Role Identity Drift

jwt-identity-drift

Auth-layer identity claims (e.g., organization/tenant) get conflated with data-layer tenant records and token handling roles blur, so incoming bearer tokens validate “legitimately” but authorize the wrong scope, enabling cross-app reuse, endpoint enumeration, or authorization drift.