errorToAuthType static method
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;
}
}