getTokenOrThrow method

Future<String> getTokenOrThrow()

Implementation

Future<String> getTokenOrThrow() async {
  final token = await getToken();
  if (token == null) {
    throw SDKException.withMessage('PlumCheck SDK Exeption - No access token found. Please init SDK first');
  }
  return token;
}