Skip to content

jsdysw/mobile-jwt-login-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mobile-jwt-login

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

  1. signup
  2. login
  3. check db, response (access token, refresh token)
  4. user : api call with access token
  5. verify token -> reseponse
  6. if expired return error -> client call post token -> server check refresh token -> get new access token
  7. user : api call again with new access token

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors