Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/harshmangalam/golang-mobile-otp-auth

Mobile OTP based authentication using golang
https://github.com/harshmangalam/golang-mobile-otp-auth

authentication gofiber golang jwt-authentication mongodb otp-verification sms-api twilio

Last synced: about 2 months ago
JSON representation

Mobile OTP based authentication using golang

Awesome Lists containing this project

README

        

# Golang Mobile OTP based Auth

## Tech stack
- golang
- gofiber
- mongodb
- twilio sdk

## Project structure

```md
Project
├── README.md
├── config
│ └── config.go
├── database
│ ├── connection.go
│ └── database.go
├── go.mod
├── go.sum
├── handler
│ └── auth.go
├── main.go
├── middleware
│ └── auth.go
├── model
│ └── user.go
├── router
│ └── router.go
├── schema
│ ├── auth.go
│ └── response.go
└── util
├── twilio.go
└── user.go
```

## Routes

- /api/auth
- /register (create new account)
- /login (sent otp to registered mobile number)
- /verify_otp
- /resend_otp
- /me (get current loggedin user)