Initializing

Create a new client for use in the browser.

Parameters

  • optionsrequiredobject

    No description provided.

      Properties
    • urloptional|

      The URL of the GoTrue server.

    • persistSessionoptional| |

      Set to "true" if you want to automatically save the user session into local storage.

    • localStorageoptionalStorage

      No description provided.

    • headersoptional|

      Any additional headers to send to the GoTrue server.

    • detectSessionInUrloptional| |

      Set to "true" if you want to automatically detects OAuth grants in the URL and signs in the user.

    • autoRefreshTokenoptional| |

      Set to "true" if you want to automatically refresh the token before expiring.