add MICRO_AUTH_TOKEN, parse token in wrapper, preload config and othe… (#1261)
* add MICRO_AUTH_TOKEN, parse token in wrapper, preload config and other things * fix wrapper panic
This commit is contained in:
		| @@ -72,9 +72,9 @@ func (s *svc) Revoke(token string) error { | ||||
| 	return err | ||||
| } | ||||
|  | ||||
| // Validate an account token | ||||
| func (s *svc) Validate(token string) (*auth.Account, error) { | ||||
| 	resp, err := s.auth.Validate(context.Background(), &pb.ValidateRequest{Token: token}) | ||||
| // Verify an account token | ||||
| func (s *svc) Verify(token string) (*auth.Account, error) { | ||||
| 	resp, err := s.auth.Verify(context.Background(), &pb.VerifyRequest{Token: token}) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user