Make example save identities and users to a simple file to preserve users and identities between restarts.
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 70/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- typescript, yaml
Research direction
Look for the in-memory stores for users and identities in the example code. Create a new module file (e.g., file-store.ts) that reads from and writes to a YAML file. Integrate this module to replace the current volatile storage. Test by restarting the server and verifying that a previously registered passkey is still recognized.
Written by the indexing model from the issue text.
Description
this example keeps users, identities, and passkey credentials in memory, so restarting the server forgets them all. A passkey saved in your password manager survives the restart, but the server no longer recognizes it (“Unknown credential”) — delete it there and add a new one. A real app would back the stores with a database.
We should just remove this issue from the example. Saving the users as a simple YAML file in the example somewhere would be perfectly fine and make it more robust.
This wasn't really an issue with emails and SMS, but with passkeys it's pretty damning.
Use simple text files, not SQLite or something, just to keep the example as simple as possible.
We can encapsulate the datastore into a separate module file to keep it separate from the rest of the example.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 1
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 32
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from activescott/auth
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
activescott/auth#38 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
activescott/auth#132 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
activescott/auth#131 ·
-
activescott/auth#127 · 2 comments · 1 assignee ·
-
activescott/auth#126 · 3 comments · 1 assignee ·
All issues in activescott/auth
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100