Skip to content

Commit

Permalink
fix: add oauth env qa
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jun 29, 2024
1 parent 153f9cc commit 61a6d16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docker-compose.qa.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ services:
# JWT_REFRESH_TTL: 259200
# JWT_ISSUER: rpkm67.sgcu.in.th
# JWT_RESET_TOKEN_TTL: 900
# OAUTH_CLIENT_ID: client_id
# OAUTH_CLIENT_SECRET: client_secret
# OAUTH_REDIRECT_URI: http://localhost:3000
# networks:
# - rpkm67
# volumes:
Expand Down
2 changes: 1 addition & 1 deletion internal/auth/auth.service.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (s *serviceImpl) GetGoogleLoginUrl(_ context.Context, in *proto.GetGoogleLo
URL, err := url.Parse(s.oauthConfig.Endpoint.AuthURL)
if err != nil {
s.log.Named("GetGoogleLoginUrl").Error("Parse: ", zap.Error(err))
return nil, status.Error(codes.Internal, "Internal server error")
return nil, status.Error(codes.Internal, err.Error())
}
parameters := url.Values{}
parameters.Add("client_id", s.oauthConfig.ClientID)
Expand Down

0 comments on commit 61a6d16

Please sign in to comment.