Skip to content

Commit

Permalink
hack: WithCredentials takes Identity?
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Oct 30, 2024
1 parent 58b1433 commit b4e05e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SpacetimeDBClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public DbConnectionBuilder<DbConnection, Reducer> WithModuleName(string nameOrAd
return this;
}

public DbConnectionBuilder<DbConnection, Reducer> WithCredentials(in (Identity identity, string token)? creds)
public DbConnectionBuilder<DbConnection, Reducer> WithCredentials(in (Identity? identity, string token)? creds)
{
token = creds?.token;
return this;
Expand Down
2 changes: 1 addition & 1 deletion unity-tests~/client/Assets/Scripts/GameManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private void Start()
Debug.Log("Disconnected.");
}).WithUri("http://127.0.0.1:3000")
.WithModuleName("untitled-circle-game")
.WithCredentials((localIdentity!, PlayerPrefs.GetString(AuthToken.GetTokenKey())))
.WithCredentials((localIdentity, PlayerPrefs.GetString(AuthToken.GetTokenKey())))
.Build();

#pragma warning disable CS0612 // Type or member is obsolete
Expand Down

0 comments on commit b4e05e8

Please sign in to comment.