Skip to content

juniored22/authentication-microservice-nestjs

Repository files navigation

Authentication-microservice

Backers on Open Collective Sponsors on Open Collective

Description

Authentication-microservice

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

Test post

obter token

POST /auth/# HTTP/1.1
Host: localhost:3000
Content-Type: application/json
Content-Length: 57

{
    "username": "example",
    "password": "password"
}

test validação token

GET /auth/protected HTTP/1.1
Host: localhost:3000
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wbGUiLCJzdWIiOjEsImlhdCI6MTY4NzQ2NTg2MiwiZXhwIjoxNjg3NDY5NDYyfQ.6ocnUcnAipKMIPzER9CNlDfLtuHdTj__clMvGvcqnrw

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

authentication-microservice MIT licensed.

About

authentication-microservice nest.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published