Function getCurrentUser

  • Fetches and returns the current authenticated user, including their org scopes. If the session is authenticated via an app API key, only the org related to the API key is returned. If the session is authenticated via a user (email & password), all orgs the user has access to are returned.

    Returns Promise<any>

    the current user

Generated using TypeDoc