From 0b05270db8f3518980a0128e3deb1c5846a40471 Mon Sep 17 00:00:00 2001 From: ajikamaludin Date: Mon, 18 Jul 2022 21:14:21 +0700 Subject: [PATCH] updated readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 26a2fd4..a3502b9 100644 --- a/README.md +++ b/README.md @@ -206,11 +206,11 @@ runtime.HTTPError = errors.CustomHTTPError ### Jwt ( Json Web Tokens ) Auth - add jwt configs to `config.yaml`, jwt: issuer: ajikamaludin, key: P@ssw0rd, type: Bearer -- changes `pkg/v1/config/config.go` add new config struct and validate config, [UPDATE] change New to GetInstance for singleton config +- changes `pkg/v1/config/config.go` add new config struct and validate config,
[UPDATE]
change New to GetInstance for singleton config - changes `pkg/v1/utils/constants/constants.go` to add new const for jwt token expired and refresh token expired - `go get github.com/dgrijalva/jwt-go`, lib to handle jwt token in go - create new pkg `pkg/v1/jwt/jwt.go`, implement Generate token and Claim token -- create new proto `proto/v1/auth/auth.proto` auth for login and register service, recompile `sh compile-proto.sh` [UPDATE] +- create new proto `proto/v1/auth/auth.proto` auth for login and register service, recompile `sh compile-proto.sh`
[UPDATE]
- implement `api/v1/auth/auth.go`, `api/v1/auth/login.go` and `api/v1/auth/register.go` - register new grpc service to grpc server ```go