C#: Realtime access token callback

A callback on the Realtime client options that returns the current access token. The client calls it on connect and on every heartbeat, so a refreshed token reaches the server without a call to SetAuth().

Examples

Supply the token from a callback

var options = new Supabase.Realtime.ClientOptions
{
    RetrieveAccessToken = async () => await tokenStore.GetAccessTokenAsync()
};

var realtime = new Supabase.Realtime.Client("wss://<project>.supabase.co/realtime/v1", options);
await realtime.ConnectAsync();