feat: add JWT authentication middleware and login endpoint

This commit is contained in:
iamatulsingh
2026-03-08 21:01:04 +01:00
parent b5ac108719
commit cc6f466c72
8 changed files with 248 additions and 148 deletions
+4 -4
View File
@@ -3,10 +3,11 @@ module whatsapp-bridge
go 1.25.0
require (
github.com/golang-jwt/jwt/v5 v5.3.1
github.com/lib/pq v1.11.2
github.com/mattn/go-sqlite3 v1.14.34
github.com/mdp/qrterminal v1.0.1
go.mau.fi/whatsmeow v0.0.0-20260219150138-7ae702b1eed4
go.mau.fi/whatsmeow v0.0.0-20260305215846-fc65416c22c4
google.golang.org/protobuf v1.36.11
)
@@ -16,7 +17,6 @@ require (
github.com/coder/websocket v1.8.14 // indirect
github.com/elliotchance/orderedmap/v3 v3.1.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/websocket v1.5.3 // indirect
github.com/mattn/go-colorable v0.1.14 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/petermattis/goid v0.0.0-20260113132338-7c7de50cc741 // indirect
@@ -26,8 +26,8 @@ require (
go.mau.fi/util v0.9.6 // indirect
golang.org/x/crypto v0.48.0 // indirect
golang.org/x/exp v0.0.0-20260218203240-3dfff04db8fa // indirect
golang.org/x/net v0.50.0 // indirect
golang.org/x/sys v0.41.0 // indirect
golang.org/x/net v0.51.0 // indirect
golang.org/x/sys v0.42.0 // indirect
golang.org/x/text v0.34.0 // indirect
rsc.io/qr v0.2.0 // indirect
)