# Initializing Auth

The plugin gives you an Event to know once all the related actions inside the plugin have been initialized and ran. This involves setting up the Supabase Client if necessary and getting the user info if there's any.&#x20;

<figure><img src="/files/kN9xdrlzFzxiIsJH2Fhg" alt=""><figcaption></figcaption></figure>

Only at this point you can fully make sure that all the States in the element have been added if there's data to be add. Having said that you also listen to the States of the element via conditions or "Do when conditions is true" workflows, but using the event is the most efficient.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.relevat.hu/supabase.js-bubble-plugin/setup/supabase-auth/initializing-auth.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
