Repository navigation
feat(migrate): add export authjs and Auth.js imports #529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
+744
−69
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
4988753
feat(migrate): add export authjs and Auth.js imports
royanger 93a358b
docs(changeset): Add clerk migrate export authjs and Auth.js imports
royanger f5b3ab4
fix(migrate): never re-prompt for an Auth.js connection under --json
royanger 9c715b9
fix(migrate): say Auth.js Credentials-provider passwords are not expo…
royanger 97c8957
fix(migrate): keep looking for the Auth.js table past one without its…
royanger 9cf4802
test(migrate): cover the generic missing-column advice again
royanger c808775
fix(migrate): give the Auth.js column hint a query that runs on its o…
royanger 5cb4783
docs(migrate): list Auth.js among the platforms that export no passwords
royanger e4ee585
docs(migrate): say an Auth.js Credentials app stores passwords wherev…
royanger 3ab2ee0
fix(migrate): find Auth.js's tables in the Supabase adapter's next_au…
royanger 2977df8
fix(migrate): leave a date that holds no real date out of a database …
royanger 912a2dd
docs(migrate): stop counting the platforms in the export headings
royanger 6d838d2
fix(migrate): drop a one-word name only when it is the user's own email
royanger 45bd4dc
fix(migrate): count verified emails from the exported values, not the…
royanger 98b68fd
fix(migrate): read Auth.js's zero and unparseable timestamps as unver…
royanger 38e07e5
fix(migrate): export Auth.js's zero-epoch Date as unverified
royanger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "clerk": minor | ||
| --- | ||
|
|
||
| Add `clerk migrate export authjs`, and let `clerk migrate import` read Auth.js exports. The export reads an Auth.js database over `--db-url` (Postgres, MySQL, libsql/Turso or SQLite), finding the user table whether Prisma or Drizzle named it. Auth.js stores no passwords, so imported users sign in with OAuth or an email link, or set a password. `clerk migrate` is still experimental and needs `CLERK_EXPERIMENTAL=migrate`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.