errorToAuthType static method

LinkedInAuthErrorType errorToAuthType(
  1. dynamic error
)

Implementation

static LinkedInAuthErrorType errorToAuthType(error) {
  switch (error) {
    case 'user_cancelled_login':
      return LinkedInAuthErrorType.userCancelledLogin;
    case 'user_cancelled_authorize':
      return LinkedInAuthErrorType.userCancelledAuthorize;
    default:
      return LinkedInAuthErrorType.other;
  }
}