For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

C#: Create an anonymous user

Creates a new anonymous user.

Examples

Create an anonymous user

var session = await supabase.Auth.SignInAnonymously();

With user metadata

var options = new SignInAnonymouslyOptions
{
  Data = new Dictionary<string, object> { { "display_name", "Anonymous" } }
};

var session = await supabase.Auth.SignInAnonymously(options);