Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 1.58 KB

README.md

File metadata and controls

63 lines (43 loc) · 1.58 KB

Ths is an simple Go Autentification

Go

Contributors

Screenshots development

Go

Table of Contents

Introduction

This project provides a basic authentication service written in Go. It includes user registration, login, and token-based authentication.

Features

  • User registration
  • User login
  • Token-based authentication
  • Password hashing

Installation

git clone [email protected]:Stei-ITstudents/go-auth.git
go mod init  github.com/Stei-ITstudents/go-auth
go mod tidy
go run main.go

Usage

To use the authentication service, you can send HTTP requests to the provided endpoints. Below are some examples:

Register a new user

 @curl -X POST http://localhost:8080/signup -d '{"username":"NewUser", "password":"password"}'

Development

make

API Endpoints

Method Endpoint Description
POST /signup Register a new user
POST /login Login a user
GET /logout Logout a user
GET /welcome Welcome a user