Fix for Custom Authentication

JohnTube ✭✭✭✭✭
edited September 2015 in Photon Chat
A strange Unity/Mono bug can cause Custom Authentication failure.

In order to avoid it, please do not use object initializer when making a new instance of AuthenticationValues to initialize the AuthType field.
AuthenticationValues authValues = new AuthenticationValues {
     AuthType = CustomAuthenticationType.Custom, // this makes Custom Authentication fail.
Instead use the classic way of assigning the AuthType to CustomAuthenticationType.Custom as follows :
AuthenticationValues authValues = new AuthenticationValues();
authValues.AuthType = CustomAuthenticationType.Custom;