Connect.cs 873 B

123456789101112131415161718192021222324252627
  1. using Supabase;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace UnitTestTripHelper.SupabaseConnect
  8. {
  9. public static class Connect
  10. {
  11. public static async Task<Client> Domain()
  12. {
  13. string url = "https://obwzsxsrvwiaclwfymzf.supabase.co";
  14. string key = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9id3pzeHNydndpYWNsd2Z5bXpmIiwicm9sZSI6ImFub24iLCJpYXQiOjE3Mjc4OTUwNTMsImV4cCI6MjA0MzQ3MTA1M30.M0hBhdqpRT2Mxw9B_1WNuQvv3myhUeRH7YjagV24fOw";
  15. SupabaseOptions options = new SupabaseOptions
  16. {
  17. AutoConnectRealtime = true
  18. };
  19. Client supabase = new Client(url, key, options);
  20. await supabase.InitializeAsync();
  21. return supabase;
  22. }
  23. }
  24. }