# connect

fun connect(authentication: Authentication, context: Context, onCompletion: (SippoResourceError?) -> Unit)

Connects a new session.

#### Parameters

authentication

Type of authentication. It may be one of the values explained below.

- Basic: Authentication using user and password.

- Token: Authentication using a token and its provider.

- @param context Application or activity context.

context

Application context.