Loading iap/iap.go +1 −1 Original line number Diff line number Diff line Loading @@ -256,7 +256,7 @@ func getGoogleAccessToken(ctx context.Context, httpc *http.Client, email string, token := jwt.NewWithClaims(jwt.SigningMethodRS256, claims) block, _ := pem.Decode([]byte(privateKey)) if block == nil { return "", errors.New("pem.Decode error") return "", errors.New("google iap private key invalid") } pk, err := x509.ParsePKCS8PrivateKey(block.Bytes) Loading server/config.go +3 −3 Original line number Diff line number Diff line Loading @@ -900,9 +900,9 @@ func NewMatchmakerConfig() *MatchmakerConfig { } type IAPConfig struct { Apple *IAPAppleConfig Google *IAPGoogleConfig Huawei *IAPHuaweiConfig Apple *IAPAppleConfig `yaml:"apple" json:"apple" usage:"Apple App Store purchase validation configuration."` Google *IAPGoogleConfig `yaml:"google" json:"google" usage:"Google Play Store purchase validation configuration."` Huawei *IAPHuaweiConfig `yaml:"huawei" json:"huawei" usage:"Huawei purchase validation configuration."` } func NewIAPConfig() *IAPConfig { Loading Loading
iap/iap.go +1 −1 Original line number Diff line number Diff line Loading @@ -256,7 +256,7 @@ func getGoogleAccessToken(ctx context.Context, httpc *http.Client, email string, token := jwt.NewWithClaims(jwt.SigningMethodRS256, claims) block, _ := pem.Decode([]byte(privateKey)) if block == nil { return "", errors.New("pem.Decode error") return "", errors.New("google iap private key invalid") } pk, err := x509.ParsePKCS8PrivateKey(block.Bytes) Loading
server/config.go +3 −3 Original line number Diff line number Diff line Loading @@ -900,9 +900,9 @@ func NewMatchmakerConfig() *MatchmakerConfig { } type IAPConfig struct { Apple *IAPAppleConfig Google *IAPGoogleConfig Huawei *IAPHuaweiConfig Apple *IAPAppleConfig `yaml:"apple" json:"apple" usage:"Apple App Store purchase validation configuration."` Google *IAPGoogleConfig `yaml:"google" json:"google" usage:"Google Play Store purchase validation configuration."` Huawei *IAPHuaweiConfig `yaml:"huawei" json:"huawei" usage:"Huawei purchase validation configuration."` } func NewIAPConfig() *IAPConfig { Loading