Skip to content

Vishal2911/userAssignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auth API Service

This is a REST API service for user authentication, including sign-up, sign-in, token authorization, token revocation, and token refresh functionality.

Prerequisites

  • Docker
  • Docker Compose

Curl commands

SignUP -- curl -X POST http://localhost:8080/signup
-H "Content-Type: application/json"
-d '{"email": "user@example.com", "password": "password123"}'

SignIN -- curl -X POST http://localhost:8080/signin
-H "Content-Type: application/json"
-d '{"email": "user@example.com", "password": "password123"}'

Refresh Token -- curl -X POST http://localhost:8080/refresh
-H "Content-Type: application/json"
-d '{"refresh_token": "your_refresh_token"}'

Logout-- curl -X POST http://localhost:8080/logout
-H "Authorization: Bearer your_access_token"

Protected Route -- curl -X GET http://localhost:8080/protected
-H "Authorization: Bearer your_access_token"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages