Devographics / Devographics/Monorepo

Migrate previously existing user accounts to new passwordless system

Open
#146 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
178
Forks
55
Avg merge
1m
Merged PRs (30d)
2

Description

I noticed my previous data was not accessible through my newer account, and I don't think we ever migrated existing accounts?

We would need to:

- Iterate over all accounts with an email
- Generate a hash using the new algorithm
- If new account with that hash exists, find all responses for old account and assign them the new `userId` for the new account
- If no new account exists, recalculate hash using new algorithm and delete email (since we don't want to store them).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.