var url = builder.Configuration["SupabaseUrl"];
var key = builder.Configuration["SupabaseKey"];
var options = new SupabaseOptions
{
AutoRefreshToken = true,
AutoConnectRealtime = true,
// SessionHandler = new SupabaseSessionHandler() <-- This must be implemented by the developer
};
// Note the creation as a singleton.
builder.Services.AddSingleton(provider => new Supabase.Client(url, key, options));
I am testing supabase but the project wont run in a .net 8 webapi project.
ERROR: Could not load type 'Supabase.Client' from assembly 'Supabase, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
program.cs
var url = builder.Configuration["SupabaseUrl"]; var key = builder.Configuration["SupabaseKey"]; var options = new SupabaseOptions { AutoRefreshToken = true, AutoConnectRealtime = true, // SessionHandler = new SupabaseSessionHandler() <-- This must be implemented by the developer };
// Note the creation as a singleton. builder.Services.AddSingleton(provider => new Supabase.Client(url, key, options));