passAuthenticationDetails

fun passAuthenticationDetails(context: Context, details: AuthenticationData, workspaceId: String? = null)

Passes the JWT token to the SDK for authentication.

Sample Usage:

val authData = AuthenticationData.JwtData(
token = "your_jwt_token",
userIdentifier = "user_id"
)
MoECoreHelper.passAuthenticationDetails(context, authData)

Parameters

context

instance of Context

details

instance of AuthenticationData

workspaceId

Workspace identifier, if multiple workspaces are configured

Throws

if the SDK is not initialised