Skip to content

SouL-H/Golang-Fiber-RestAPI-using-JWT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang-Fiber-RestAPI using JWT

Starting (M1-ARM64)

go mod tidy
go run main.go

.env File

You need to create a .env config file.

DB_CONN="root:*******@/dbName" #DB conf 
SECRET_KEY="test_secret_key" #JWT Secret Key
PORT=":8082" #Port to listen

Register

Post localhost:8082/api/register

Observer

Login

Post localhost:8082/api/login

Observer

Get UserInfo

Cookie JWT is saved.

Observer

Logout

Post localhost:8082/api/logout

User information is deleted from the cookie.

Observer

Cookie

Observer

Thank You Scalable Scripts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages