Returns the new instance of AuthError based on arguments.
AuthError.from({ required this.code, required this.reason, });