Skip to content

MyBad123/node_jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My first project on Node.js

Instructions for launching the application:

  1. Make sure the following development tools are installed:

    npm
    node --version
    mongo
    
  2. Create a project

    npm init -y

  3. Install following dependings

    npm install bcrypt express express-graphql graphql jsonwebtoken mongoose --save

  4. Run the app

    node index

Requests

Mutations:

  1. Get info(test of access token)

    getInfo(input: {access: String}){username}

    username - your username; access - get access token

  2. Auth user

    createUser(input: { username: String, password: String }) { access refresh }

    username - your username; password - your password; access - get access token; refresh - get refresh token

  3. Refresh tokens

    getNewToken(input: {refresh: String}) { access refresh }

    username - your username; access - get access token; refresh - get refresh token

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors