Add support for specifying Http Timeout

Open
#317 1 comment 0 reactions 1 assignee View on GitHub

@Tr00d is already working on this.

Since Jul 3, 2026.

Assessment

This issue has not been assessed yet.

Description

area: gotrue feature

Feature request

Is your feature request related to a problem? Please describe.

Currently, gotrue-csharp uses the default HttpClient timeout (which is typically 100 seconds). In many mobile or unstable network scenarios, this is way too long, leading to a poor user experience where the app appears frozen during authentication attempts on a bad connection.

Other libraries in the C# ecosystem for Supabase, such as functions-csharp and realtime-csharp, already allow users to specify a custom timeout

Describe the solution you'd like

I would like to see a Timeout property added to the ClientOptions class.

Describe alternatives you've considered

One alternative is to manually provide a custom HttpClient via the constructor if the library supports it, but having a first-class property in Options is much more user-friendly and aligns with the developer experience in other Supabase C# SDKs.

Dominant language
C#
Stars
701
Forks
106
Avg merge
16h 35m
Merged PRs (30d)
45

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from supabase/supabase-csharp

All issues in supabase/supabase-csharp

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.