add jwt token validation

This commit is contained in:
behrooz
2025-08-13 12:03:42 +03:30
parent 7200d913f6
commit 3834c84497
5 changed files with 41 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ var (
)
func InitDB() {
clientOptions := options.Client().ApplyURI("mongodb://root:example@192.168.2.177:27017/")
clientOptions := options.Client().ApplyURI("mongodb://root:example@localhost:27017/")
client, err := mongo.Connect(context.TODO(), clientOptions)
if err != nil {
log.Fatal(err)