JavaScript: Create an anonymous user

Creates a new anonymous user.

Parameters

Examples

Create an anonymous user

const \{ data, error \} = await supabase.auth.signInAnonymously(\{
  options: \{
    captchaToken
  \}
\});

Create an anonymous user with custom user metadata

const \{ data, error \} = await supabase.auth.signInAnonymously(\{
  options: \{
    data
  \}
\})