Browse Source

JWT Authorization

user
Seyora24 2 years ago
parent
commit
4c65ecfdd3
  1. 3
      .env
  2. 7
      go.mod

3
.env

@ -1,2 +1,3 @@
PORT=3000 PORT=3000
DB_URL="host=tyke.db.elephantsql.com user=fccqcvsf password=zOwpil8nPOy5zan6xTt37hKL3tvnaznM dbname=fccqcvsf port=5432 sslmode=disable" SECRET=sdc87sdf6gv87df6fv8sdf6v8sdf76v8sdf7v6
DB="host=tyke.db.elephantsql.com user=fccqcvsf password=zOwpil8nPOy5zan6xTt37hKL3tvnaznM dbname=fccqcvsf port=5432 sslmode=disable"

7
go.mod

@ -15,6 +15,7 @@ require (
github.com/go-playground/universal-translator v0.18.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.14.1 // indirect github.com/go-playground/validator/v10 v10.14.1 // indirect
github.com/goccy/go-json v0.10.2 // indirect github.com/goccy/go-json v0.10.2 // indirect
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/jackc/pgx/v5 v5.4.1 // indirect github.com/jackc/pgx/v5 v5.4.1 // indirect
@ -32,11 +33,11 @@ require (
github.com/radovskyb/watcher v1.0.7 // indirect github.com/radovskyb/watcher v1.0.7 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.11 // indirect github.com/ugorji/go/codec v1.2.11 // indirect
golang.org/x/arch v0.3.0 // indirect golang.org/x/arch v0.4.0 // indirect
golang.org/x/crypto v0.10.0 // indirect golang.org/x/crypto v0.10.0 // indirect
golang.org/x/net v0.11.0 // indirect golang.org/x/net v0.11.0 // indirect
golang.org/x/sys v0.9.0 // indirect golang.org/x/sys v0.10.0 // indirect
golang.org/x/text v0.10.0 // indirect golang.org/x/text v0.11.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect
gorm.io/driver/postgres v1.5.2 // indirect gorm.io/driver/postgres v1.5.2 // indirect

Loading…
Cancel
Save