# connect

fun connect(authentication: Authentication, context: Context): Completable

Connects a new session.

#### Return

A Completable that completes when the session is successfully connected. It may emit an error if the connection fails.

#### Parameters

authentication

The authentication method to be used. It can be:

- Basic: User and password-based authentication.

- Token: Token-based authentication with a token provider.

context

The application or activity context.