/GOLANG-JWT-AUTH

A simple jwt authentication app written using golang and the framework gofiber

Primary LanguageGo

Go

JWT AUTHENTICATION WITH GOFIBER

Contents

  • Introduction

  • Packages Used

  • Images

    Introduction

    A Rest Api that authenticates requests using Json Web Tokens.

    JSON Web Token is an Internet proposed standard for creating data with optional signature and/or optional encryption whose payload holds JSON that asserts some number of claims. The tokens are signed either using a private secret or a public/private key.

    Packages Used

    • Gofiber -> Fiber is a Go web framework built on top of Fasthttp, the fastest HTTP engine for Go. It's designed to ease things up for fast development with zero memory allocation and performance in mind.

    • Gorm -> The fantastic ORM library for Golang.

    • Jwt-Go-> Used to create jwt tokens while using golang

    • Bcrypt -> Used to encrypt passwords.

    Images

    unauthorized.PNG

    login

    authentication.PNG