at backend-server directory
make .env file
ex) JWT_SECRET = 'jwtsecret'
npm init
npx sequelize init
fill out config/config.json
ex)
"development": { "username": "root", "password": "password", "database": "login", "host": "127.0.0.1", "dialect": "mysql" },
npx sequelize db:create
##process
- signup
- login
- check db, response (access token, refresh token)
- user : api call with access token
- verify token -> reseponse
- if expired return error -> client call post token -> server check refresh token -> get new access token
- user : api call again with new access token