Function getUserId

  • Asynchronously retrieves the current user's ID

    Returns Promise<string | None>

    Resolves to the user ID or null if the current user is anonymous. Resolves to undefined if the SDK has not been initialized.