Skip to content

Python 3 Script to migrate NextAuth users and sessions from PlanetScale to Upstash.

Notifications You must be signed in to change notification settings

astrooom/nextauth-planetscale-to-upstash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nextauth-planetscale-to-upstash

Python 3 Script to migrate NextAuth users and sessions from PlanetScale to Upstash.

Usage

  1. Set appropriate values in a .env in the same folder as the script runs in. Check .env.sample for all values to be set.
  2. Install required dependencies (mysql-connector and redis) using pip install -r requirements.txt
  3. Run the script using python(3) run.py. You will be prompted before the migration starts unless you set HEADLESS=true in the .env

Notes

This migration script is designed to work with a separate table for auth_tokens, specifically to migrate tokens for Directus, Pterodactyl Panel and WHMCS by default. Please change or remove this code depending on how your setup looks.

About

Python 3 Script to migrate NextAuth users and sessions from PlanetScale to Upstash.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages