Go to the new repo: here
The env file has some example secrets
If you intend to use this please generate your own
* Node.js
* MongoDB client or MongoDB atlas
-
npm i -
create a file called .env with the following content:
REFRESH_TOKEN_SECRET = 'your-token-here' ACCESS_TOKEN_SECRET = 'you-other-token-here' ACCESS_TOKEN_TIME = '10m'
-
npm run dev -
open the browser and go to http://localhost/
```js
fetch('http://localhost/register', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
username: 'your-username',
password: 'your-password'
})
})
```