4msar / notepad

A simple notepad web application.
https://note.msar.me/
0 stars 1 forks source link

Add authentication system for personal note #12

Open 4msar opened 1 year ago

4msar commented 1 year ago

Add authentication system for personal note options.

user can login and the user notes will be stored like this.

{
    "userId": {
        "noteKey": {
            "note": "note-content",
            "key": "noteKey",
            "encrypted": true,
            "editedAt": "Date.timestamp",
            "syncAt": "Date.timestamp", // number

        }
    }
}

storage path will be private-notes the encryption will be use user defined key.

Use firebase authentication.

Shashankpantiitbhilai commented 1 year ago

please assign it to me

Shashankpantiitbhilai commented 1 year ago

do i have to change the .env.example file

4msar commented 1 year ago

Yes you have to change the .env file and you should create a firebase app also.

follow the firebase docs.

https://firebase.google.com/docs/auth/web/password-auth