---
title: "A Simple 3-Step Process to Migrate from Supabase Auth to Neon Auth"
description: "Supabase Auth users can be moved to Neon Auth (built on Stack Auth) without forcing password resets by exporting bcrypt hashes in Modular Crypt Format and importing them through the Stack Auth REST API."
url: "https://swe.quest/articles/a-simple-3-step-process-to-migrate-from-supabase-auth-to-neon-auth-4a39ae039de9e6ef"
canonical: "https://neon.com/blog/supabase-auth-neon-auth"
source: "Neon"
published: "2025-03-25"
difficulty: "medium"
kind: "How-to"
reading_minutes: 5
tags: ["identity-auth","postgres","javascript"]
---

# A Simple 3-Step Process to Migrate from Supabase Auth to Neon Auth

A post on [Neon](https://swe.quest/sources/neon.md), published 2025-03-25, 5 min read, How-to. Original: [https://neon.com/blog/supabase-auth-neon-auth](https://neon.com/blog/supabase-auth-neon-auth)

## Summary

Supabase Auth users can be moved to Neon Auth (built on Stack Auth) without forcing password resets by exporting bcrypt hashes in Modular Crypt Format and importing them through the Stack Auth REST API. A PL/pgSQL function joins auth.users and auth.identities to export emails and encrypted passwords to CSV. A Node.js script then posts each user to the create-users endpoint with the hash in password\_hash, handling UTF-8 BOMs and throttling requests to avoid rate limits. Imported users appear in a read-only neon\_auth.users\_sync Postgres table that can be joined in application queries.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)

## Prerequisites

- Postgres SQL basics ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- Node.js scripting ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- bcrypt password hashing

## Keywords

Neon Auth, Supabase Auth, Stack Auth, bcrypt, Modular Crypt Format, csv-parse

## Related posts

- [Meet the New Neon Auth: Branchable Identity in Your Database](https://swe.quest/articles/meet-the-new-neon-auth-branchable-identity-in-your-database-be81a13634133bac.md): Neon · 2025-12-10 · Easy · 8 min read · Identity & auth, PostgreSQL, Databases
  Neon Auth has been rebuilt on Better Auth and now stores users, sessions, organizations and auth configuration in a neon\_auth schema inside the Neon Postgres database.
- [Handling Auth in a Staging Environment](https://swe.quest/articles/handling-auth-in-a-staging-environment-18efe1e68fa29994.md): Neon · 2026-01-10 · Medium · 7 min read · Identity & auth, PostgreSQL, CI/CD, Testing
  Neon Auth stores users, sessions and OAuth data in a neon\_auth schema inside the Postgres database, so branching the database also branches auth state via copy-on-write.
- [Supabase Auth: Identity Linking, Hooks, and HaveIBeenPwned integration](https://swe.quest/articles/supabase-auth-identity-linking-hooks-and-haveibeenpwned-integration-8ed59b21ef27e3e6.md): Supabase · 2023-12-14 · Medium · 5 min read · Identity & auth, PostgreSQL
  Supabase Auth adds four features: manual Identity Linking via linkIdentity()/unlinkIdentity() for OAuth identities, session controls (time-boxed sessions, inactivity timeouts, single session per user on Pro and above), leaked password protection using the HaveIBeenPwned Pwned Passwords API with configurable password requirements, and Auth Hooks.
- [supabase-js v2](https://swe.quest/articles/supabase-js-v2-f87cba2e3b41f9e9.md): Supabase · 2022-08-16 · Medium · 5 min read · JavaScript, TypeScript, API design, Identity & auth, PostgreSQL
  supabase-js v2 brings incremental quality-of-life changes over v1.
- [Supabase Auth now supports Anonymous Sign-ins](https://swe.quest/articles/supabase-auth-now-supports-anonymous-sign-ins-1d15678eda734aad.md): Supabase · 2024-04-17 · Medium · 4 min read · Identity & auth, PostgreSQL
  Supabase Auth adds anonymous sign-ins, letting apps create temporary users who are treated as \`authenticated\` and persisted in \`auth.users\` with an \`is\_anonymous\` flag exposed as a JWT claim.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
