# Handling Auth in a Staging Environment

DevFeed: [Handling Auth in a Staging Environment](<https://devfeed.tech/articles/handling-auth-in-a-staging-environment-5320.md>)

Original publisher: [Read original article](<https://neon.com/blog/handling-auth-in-a-staging-environment>)

Author: Carlota Soto

Published: 2026-01-10T00:39:46Z

Content type: article

Language: en

Sources: [Blog -- Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [Authentication](<https://devfeed.tech/topics/authentication.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [GitHub Actions](<https://devfeed.tech/topics/github-actions.md>), [Database](<https://devfeed.tech/topics/database.md>), [Vercel](<https://devfeed.tech/topics/vercel.md>), [Pull Request](<https://devfeed.tech/topics/pull-request.md>)

Tags: [auth](<https://devfeed.tech/tags/auth.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [databases](<https://devfeed.tech/tags/databases.md>), [development](<https://devfeed.tech/tags/development.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [product](<https://devfeed.tech/tags/product.md>), [qa](<https://devfeed.tech/tags/qa.md>), [vercel](<https://devfeed.tech/tags/vercel.md>)

## AI overview

This article examines the friction caused by authentication systems that remain manually managed and disconnected from branched staging databases and preview environments. It describes outdated roles, manual test-account setup, credential sharing, cleanup problems, and inconsistent user records, then begins introducing a rebuilt authentication approach at Neon.

## Source excerpt

You just opened a PR that adds a new user role to your app. Your staging database has the schema changes. Your preview deploy is live. But when QA tries to test it, they hit a wall: the test users in your auth system still have the old roles. Someone needs to manually update them...