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().
null keeps the current token.ConnectAsync(). A failure on a heartbeat is logged and keeps the current token.Supabase.Client sets this callback for you when you use SupabaseOptions.ThirdPartyAccessToken. Set it yourself when you use the standalone Supabase.Realtime package.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();