supabase-community / supabase-csharp

A C# Client library for Supabase
https://github.com/supabase-community/supabase-csharp/wiki
MIT License
499 stars 50 forks source link

Gotrue-csharp SignOut() by scope #148

Closed kienns1996 closed 3 months ago

kienns1996 commented 7 months ago

Feature request

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

Is it possible to add a scope option to be able to logout "local", "global" or "others" in Gotrue-csharp? SignOut() logs out all sessions by default.

acupofjose commented 7 months ago

The client is designed to only support one user per client instance, if you need to support multiple signed in users at a time, you'll need to initialize a separate client for the secondary user as well as a different GotrueSessionPersistence handler if you're attempting to persist each user.

As for restructuring the gotrue client to multiple logins within a single instance, that is not something that is planned!

acupofjose commented 3 months ago

Available in >= Supabase.Gotrue@5.0.6