Skip to content

Commit

Permalink
Catch null (Icosa doesn't have or need secrets at the moment)
Browse files Browse the repository at this point in the history
  • Loading branch information
andybak committed Dec 22, 2024
1 parent 10d1b64 commit 4fdc145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/Sharing/OAuth2Identity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private static void LogOutAll()
public bool IsGoogle => m_Service == SecretsConfig.Service.Google;
public bool IsIcosa => m_Service == SecretsConfig.Service.Icosa;
public UserCredential UserCredential => m_CredentialRequest?.UserCredential;
private SecretsConfig.ServiceAuthData ServiceAuthData => App.Config.Secrets[m_Service];
private SecretsConfig.ServiceAuthData ServiceAuthData => App.Config.Secrets?[m_Service];
public string ClientId => ServiceAuthData?.ClientId;
private string ClientSecret => ServiceAuthData?.ClientSecret;

Expand Down

0 comments on commit 4fdc145

Please sign in to comment.