Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/harshmangalam/golang-mobile-otp-auth
- Owner: harshmangalam
- Created: 2023-08-05T19:47:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-05T19:51:45.000Z (over 1 year ago)
- Last Synced: 2024-11-30T12:33:46.961Z (about 2 months ago)
- Topics: authentication, gofiber, golang, jwt-authentication, mongodb, otp-verification, sms-api, twilio
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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)