registerWithAuthenticationProvider

abstract suspend fun registerWithAuthenticationProvider(authenticationProvider: AuthenticationProvider, registrationId: String?): String

Registers this client against the backend with an external authentication provider. Caller must implement AuthenticationProvider protocol to return appropriate authentication token required to authorize the registration request.

Return

user ID of the newly created user

Parameters

authenticationProvider

authentication provider that provides the authentication token.

registrationId

registration ID to uniquely identify this registration request.