MorphrCloudClient constructor
MorphrCloudClient({})
Creates a new MorphrCloudClient instance with JWT authentication.
The baseUrl parameter is the base URL of the Morphr Cloud API.
The onTokenRefreshed callback is called when the access token is refreshed.
Implementation
MorphrCloudClient({
required this.baseUrl,
this.accessToken,
this.refreshToken,
this.onTokenRefreshed,
this.timeout = const Duration(seconds: 30),
}) : authMethod = MorphrAuthMethod.jwt,
_clientId = null,
_clientSecret = null;